]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
Implement _exit (we _must_ not return from a __noreturn__ function)
authorAntti Kantee <pooka@iki.fi>
Sun, 8 Sep 2013 07:59:02 +0000 (10:59 +0300)
committerAntti Kantee <pooka@iki.fi>
Sun, 8 Sep 2013 07:59:02 +0000 (10:59 +0300)
lib/emul.c
lib/libc_stubs.c

index 5474f32b8971816e9571ae4f8955a668a0cbc9ec..ef6964ad0dd145b9d67eafdba07c15a2d3811cd2 100644 (file)
@@ -18,6 +18,7 @@
 #include <unistd.h>
 
 #include <mini-os/os.h> /* for PAGE_SIZE */
+#include <mini-os/kernel.h>
 
 void *
 mmap(void *addr, size_t len, int prot, int flags, int fd, off_t off)
@@ -72,3 +73,10 @@ munmap(void *addr, size_t len)
        free(addr);
        return 0;
 }
+
+void __dead
+_exit(int eval)
+{
+
+       do_exit();
+}
index fc13f07ff95bc0e12b0e9e34de807ce37b831d14..623f38a5c263b79d3f2275e04768d3cdb7077b3c 100644 (file)
@@ -17,7 +17,6 @@ STUB(__sigaction14);
 STUB(__sigprocmask14);
 STUB(__getrusage50);
 
-STUB(_exit);
 STUB(_lwp_kill);
 STUB(_lwp_self);
 STUB(__wait450);