diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-02 04:20:21 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-02 04:20:21 +0200 |
commit | f84d2aebd4d295f08c50b88ed4452f6c9b6605e6 (patch) | |
tree | a6a731ac9a99f67021364091426cd58a6c7b0886 /tests/fork.c | |
parent | Fix exit status regression ... now I can go back to sleep again (diff) | |
download | sctrace-f84d2aebd4d295f08c50b88ed4452f6c9b6605e6.tar.gz sctrace-f84d2aebd4d295f08c50b88ed4452f6c9b6605e6.tar.bz2 sctrace-f84d2aebd4d295f08c50b88ed4452f6c9b6605e6.tar.xz |
Reject i386 and x32 applications (not yet supported)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | tests/fork.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <time.h> #include <unistd.h> 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; } } |