mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-18 11:41:06 +00:00
tweak to avoid clang compilation failure
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29251 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
91e22a6407
commit
cc9250b32e
1 changed files with 9 additions and 7 deletions
|
@ -1633,27 +1633,29 @@ GSPrivateCheckTasks()
|
|||
}
|
||||
else if (result == _taskId || (result > 0 && errno == 0))
|
||||
{
|
||||
if (WIFEXITED(_terminationStatus))
|
||||
int status = [self terminationStatus];
|
||||
|
||||
if (WIFEXITED(status))
|
||||
{
|
||||
#ifdef WAITDEBUG
|
||||
NSLog(@"waitpid %d, termination status = %d",
|
||||
_taskId, _terminationStatus);
|
||||
_taskId, status);
|
||||
#endif
|
||||
[self _terminatedChild: WEXITSTATUS(_terminationStatus)];
|
||||
[self _terminatedChild: WEXITSTATUS(status)];
|
||||
}
|
||||
else if (WIFSIGNALED(_terminationStatus))
|
||||
else if (WIFSIGNALED(status))
|
||||
{
|
||||
#ifdef WAITDEBUG
|
||||
NSLog(@"waitpid %d, termination status = %d",
|
||||
_taskId, _terminationStatus);
|
||||
_taskId, status);
|
||||
#endif
|
||||
[self _terminatedChild: WTERMSIG(_terminationStatus)];
|
||||
[self _terminatedChild: WTERMSIG(status)];
|
||||
}
|
||||
#ifdef WAITDEBUG
|
||||
else
|
||||
{
|
||||
NSLog(@"waitpid %d, event status = %d",
|
||||
_taskId, _terminationStatus);
|
||||
_taskId, status);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue