Fix possible thread safety issue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23975 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-10-28 03:49:44 +00:00
parent e26157d901
commit 2c27acbf66
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-10-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTask.m: GSPrivateCheckTasks() retain terminated task
while handling termination process and notification to prevent
possible thread safety issue spotted by Wim.
2006-10-26 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSPropertyList.m: use declaration of GSArray from GSPrivate.h

View file

@ -1278,6 +1278,7 @@ GSPrivateCheckTasks()
[tasksLock lock];
t = (NSTask*)NSMapGet(activeTasks, (void*)(intptr_t)result);
AUTORELEASE(RETAIN(t));
[tasksLock unlock];
if (t != nil)
{