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:
Jérôme Duval 2008-01-12 15:51:02 +00:00
parent 748988ae1f
commit 15ee8ca67b

View File

@ -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;