diff --git a/testing/ostest/sighand.c b/testing/ostest/sighand.c index 890ba7dc2..e4a79cd71 100644 --- a/testing/ostest/sighand.c +++ b/testing/ostest/sighand.c @@ -346,7 +346,11 @@ void sighand_test(void) /* Wait a bit */ FFLUSH(); - sleep(2); + status = sleep(2); + while (status) + { + status = sleep(status); + } /* Then check the result */