summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_fork.c')
-rw-r--r--sys/compat/linux/linux_fork.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c
index 316cf2a..c951c8f 100644
--- a/sys/compat/linux/linux_fork.c
+++ b/sys/compat/linux/linux_fork.c
@@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$");
#include <sys/sdt.h>
#include <sys/sx.h>
#include <sys/unistd.h>
+#include <sys/wait.h>
#ifdef COMPAT_LINUX32
#include <machine/../linux32/linux.h>
@@ -297,3 +298,16 @@ linux_clone(struct thread *td, struct linux_clone_args *args)
return (0);
}
+
+int
+linux_exit(struct thread *td, struct linux_exit_args *args)
+{
+
+#ifdef DEBUG
+ if (ldebug(exit))
+ printf(ARGS(exit, "%d"), args->rval);
+#endif
+
+ exit1(td, W_EXITCODE(args->rval, 0));
+ /* NOTREACHED */
+}
OpenPOWER on IntegriCloud