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:
Richard Frith-MacDonald 2006-07-04 08:15:19 +00:00
parent 7d7cdcc9b6
commit c6f4e015be
3 changed files with 15 additions and 4 deletions

View file

@ -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

View file

@ -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];
}

View file

@ -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,