mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Don't have the subtask crash when logging zombie message.
This commit is contained in:
parent
2c9e521789
commit
9e504da2df
1 changed files with 3 additions and 2 deletions
|
@ -9,8 +9,8 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
NSTask *task;
|
||||
NSPipe *outPipe;
|
||||
NSTask *task;
|
||||
NSPipe *outPipe;
|
||||
NSFileManager *mgr;
|
||||
NSString *helpers;
|
||||
NSFileHandle *outHandle;
|
||||
|
@ -28,6 +28,7 @@ int main()
|
|||
|
||||
env = [[[NSProcessInfo processInfo] environment] mutableCopy];
|
||||
[env setObject: @"YES" forKey: @"NSZombieEnabled"];
|
||||
[env setObject: @"NO" forKey: @"CRASH_ON_ZOMBIE"];
|
||||
task = [[NSTask alloc] init];
|
||||
outPipe = [[NSPipe pipe] retain];
|
||||
[task setLaunchPath: [helpers stringByAppendingPathComponent: @"NSZombie"]];
|
||||
|
|
Loading…
Reference in a new issue