From f84d2aebd4d295f08c50b88ed4452f6c9b6605e6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 2 Jun 2020 04:20:21 +0200 Subject: Reject i386 and x32 applications (not yet supported) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- tests/fork.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/fork.c') diff --git a/tests/fork.c b/tests/fork.c index 7bbc4c2..993e0d4 100644 --- a/tests/fork.c +++ b/tests/fork.c @@ -1,15 +1,17 @@ +#include #include int main(void) { + struct timespec ts = {0, 100000000L}; switch (fork()) { case -1: return -1; case 0: return 2; default: - usleep(100000U); + nanosleep(&ts, NULL); return 1; } } -- cgit v1.2.3-70-g09d2