summaryrefslogtreecommitdiff
path: root/reboot.c
diff options
context:
space:
mode:
authorEric Andersen1999-10-12 22:26:06 +0000
committerEric Andersen1999-10-12 22:26:06 +0000
commit3cf52d19581b2077480e7d2e63010baa1f5399c1 (patch)
treed91b0cb332ebc976126e36a394655dde7a15d8b1 /reboot.c
parent2ce1edcf544ac675e6762c9861a6b918401ea716 (diff)
downloadbusybox-3cf52d19581b2077480e7d2e63010baa1f5399c1.zip
busybox-3cf52d19581b2077480e7d2e63010baa1f5399c1.tar.gz
More stuff...
Diffstat (limited to 'reboot.c')
-rw-r--r--reboot.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/reboot.c b/reboot.c
index 0388fbc..f915205 100644
--- a/reboot.c
+++ b/reboot.c
@@ -1,12 +1,8 @@
#include "internal.h"
#include <signal.h>
-const char reboot_usage[] = "reboot\n"
-"\n\t"
-"\treboot the system.\n";
-
extern int
-reboot_main(struct FileInfo * i, int argc, char * * argv)
+reboot_main(int argc, char ** argv)
{
- return kill(1, SIGUSR2);
+ exit( kill(1, SIGUSR2));
}