mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-22 19:31:53 +00:00
Add check that we do not launch a task while we already have one recorded.
This commit is contained in:
parent
bad8e8e5b3
commit
154f4f7a2d
1 changed files with 6 additions and 0 deletions
|
@ -1270,6 +1270,12 @@ valgrindLog(NSString *name)
|
||||||
[env addEntriesFromDictionary: addE];
|
[env addEntriesFromDictionary: addE];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (task != nil)
|
||||||
|
{
|
||||||
|
NSLog(@"-launch called for %@ with task %@ already present at %@",
|
||||||
|
self, task, [NSThread callStackSymbols]);
|
||||||
|
DESTROY(task);
|
||||||
|
}
|
||||||
task = [NSTask new];
|
task = [NSTask new];
|
||||||
[task setEnvironment: env];
|
[task setEnvironment: env];
|
||||||
[task setLaunchPath: prog];
|
[task setLaunchPath: prog];
|
||||||
|
|
Loading…
Reference in a new issue