diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-03-08 19:25:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-03-08 19:25:01 +0000 |
commit | 692d89bb85ce43b9405351da51559452de852302 (patch) | |
tree | 95636eb0ab4f522f3cfa61d49d4ac07b94166c9a /regress/sys/kern | |
parent | 5881a70c79c644e15d8facb4766875246300f0db (diff) |
don't use __syscall to emulate _exit, just call _exit
Diffstat (limited to 'regress/sys/kern')
-rw-r--r-- | regress/sys/kern/wait/wait.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/kern/wait/wait.c b/regress/sys/kern/wait/wait.c index 1b93de0ac20..3804ca60b8c 100644 --- a/regress/sys/kern/wait/wait.c +++ b/regress/sys/kern/wait/wait.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wait.c,v 1.1 2003/11/04 07:38:08 mickey Exp $ */ +/* $OpenBSD: wait.c,v 1.2 2017/03/08 19:25:00 deraadt Exp $ */ /* * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain. */ @@ -14,11 +14,11 @@ main() { int status; - switch(fork()) { + switch (fork()) { case -1: err(1, "fork"); case 0: - __syscall((u_int64_t)SYS_exit, 17, 0); + _exit(17); abort(); } |