Don't have the subtask crash when logging zombie message.

This commit is contained in:
rfm 2024-11-17 20:50:17 +00:00
parent 2c9e521789
commit 9e504da2df

View file

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