Return to shutdown.c CVS log | Up to [local] / prex-old / usr / bin / shutdown |
version 1.1.1.1, 2008/06/03 10:38:47 | version 1.1.1.1.2.1, 2008/08/13 17:12:36 | ||
---|---|---|---|
|
|
||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||
*/ | */ | ||
#include <prex/prex.h> | #include <sys/reboot.h> | ||
#include <prex/power.h> | |||
#include <unistd.h> | #include <unistd.h> | ||
#include <err.h> | #include <err.h> | ||
|
|
||
/* kill(-1, SIGTERM); */ | /* kill(-1, SIGTERM); */ | ||
sleep(1); | sleep(1); | ||
shutdown(0); | reboot(RB_POWERDOWN); | ||
fprintf(stderr, "shutdown failed!\n"); | fprintf(stderr, "shutdown failed!\n"); | ||
exit(1); | exit(1); |