system() should continue to wait when wait_for_thread returns B_INTERRUPTED
fixes bug #1707 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23439 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
748988ae1f
commit
15ee8ca67b
@ -27,7 +27,11 @@ system(const char *command)
|
||||
}
|
||||
|
||||
status_t returnValue;
|
||||
status_t error = wait_for_thread(thread, &returnValue);
|
||||
status_t error;
|
||||
do {
|
||||
error = wait_for_thread(thread, &returnValue);
|
||||
} while (error == B_INTERRUPTED);
|
||||
|
||||
if (error != B_OK) {
|
||||
errno = error;
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user