implemented numeric sort (sort -g)
[oweals/busybox.git] / reboot.c
index 53a3520e1173d4683884a3ce99ecb9e3e42e39c7..1339a60f45592cc2084110997753567aa71b8f5b 100644 (file)
--- a/reboot.c
+++ b/reboot.c
@@ -26,5 +26,6 @@
 extern int
 reboot_main(int argc, char ** argv)
 {
-       exit( kill(1, SIGUSR2));
+    /* don't assume init's pid == 1 */
+    exit( kill(findInitPid(), SIGINT));
 }