mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
mproved task handling under windoze.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13229 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
031118188f
commit
8654858981
4 changed files with 116 additions and 46 deletions
|
@ -29,14 +29,14 @@ main()
|
|||
object: nil];
|
||||
|
||||
#ifdef __MINGW__
|
||||
task = [NSTask launchedTaskWithLaunchPath: @"C:\\WINDOWS\\COMMAND\\MEM.EXE"
|
||||
task = [NSTask launchedTaskWithLaunchPath: @"C:\\windows\\system32\\mem.exe"
|
||||
arguments: nil];
|
||||
#else
|
||||
task = [NSTask launchedTaskWithLaunchPath: @"/bin/ls"
|
||||
arguments: nil];
|
||||
#endif
|
||||
[task waitUntilExit];
|
||||
printf("Exit status - %d\n", [task terminationStatus]);
|
||||
printf("Exit status - %d\n", [task terminationStatus]); fflush(stdout);
|
||||
|
||||
RELEASE(pool);
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
@ -70,7 +70,7 @@ main()
|
|||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
|
||||
[[NSRunLoop currentRunLoop] runOnceBeforeDate:
|
||||
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate:
|
||||
[NSDate dateWithTimeIntervalSinceNow: 1]];
|
||||
RELEASE(arp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue