mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
e26157d901
commit
2c27acbf66
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -1278,6 +1278,7 @@ GSPrivateCheckTasks()
|
|||
|
||||
[tasksLock lock];
|
||||
t = (NSTask*)NSMapGet(activeTasks, (void*)(intptr_t)result);
|
||||
AUTORELEASE(RETAIN(t));
|
||||
[tasksLock unlock];
|
||||
if (t != nil)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue