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:
@@ -27,7 +27,11 @@ system(const char *command)
|
|||||||
}
|
}
|
||||||
|
|
||||||
status_t returnValue;
|
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) {
|
if (error != B_OK) {
|
||||||
errno = error;
|
errno = error;
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user