mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use CREATE_NO_WINDOW for subtasks on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23122 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d7cdcc9b6
commit
c6f4e015be
3 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-07-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTask.m: On mingw32 create subtask with CREATE_NO_WINDOW
|
||||
|
||||
2006-07-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSHTTPURLHandle.m: Keep count of challenge/authentication
|
||||
to avoid recycling the same authentucation repeatedly.
|
||||
|
||||
2006-06-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Tools/gdnc.m: Don't try to trap SIGPROF
|
||||
|
|
|
@ -98,6 +98,7 @@ static NSString *httpVersion = @"1.1";
|
|||
BOOL tunnel;
|
||||
BOOL debug;
|
||||
BOOL keepalive;
|
||||
unsigned char challenged;
|
||||
NSFileHandle *sock;
|
||||
NSURL *url;
|
||||
NSURL *u;
|
||||
|
@ -629,14 +630,14 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
*/
|
||||
info = [document headerNamed: @"http"];
|
||||
val = [info objectForKey: NSHTTPPropertyStatusCodeKey];
|
||||
if ([val intValue] == 401)
|
||||
if ([val intValue] == 401 && self->challenged < 2)
|
||||
{
|
||||
NSString *a;
|
||||
GSMimeHeader *ah;
|
||||
|
||||
self->challenged++; // Prevent repeated challenge/auth
|
||||
a = (id)NSMapGet(wProperties, (void*)@"Authorization");
|
||||
if ([a hasPrefix: @"Basic"] == YES
|
||||
&& (ah = [document headerNamed: @"WWW-Authenticate"]) != nil)
|
||||
if ((ah = [document headerNamed: @"WWW-Authenticate"]) != nil)
|
||||
{
|
||||
NSURLProtectionSpace *space;
|
||||
NSString *ac;
|
||||
|
@ -791,6 +792,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
|
||||
- (void) loadInBackground
|
||||
{
|
||||
self->challenged = 0;
|
||||
[self _tryLoadInBackground: nil];
|
||||
}
|
||||
|
||||
|
|
|
@ -1189,7 +1189,7 @@ quotedFromString(NSString *aString)
|
|||
NULL, /* proc attrs */
|
||||
NULL, /* thread attrs */
|
||||
1, /* inherit handles */
|
||||
CREATE_UNICODE_ENVIRONMENT, /* creation flags */
|
||||
CREATE_NO_WINDOW|CREATE_UNICODE_ENVIRONMENT, /* creation flags */
|
||||
envp, /* env block */
|
||||
(const unichar*)[[self currentDirectoryPath] fileSystemRepresentation],
|
||||
&start_info,
|
||||
|
|
Loading…
Reference in a new issue