blob: 96130176489abb41e3881d52208210b44662aed3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* ISC license. */
#include <unistd.h>
#include <sys/reboot.h>
#include <skalibs/strerr2.h>
int main ()
{
PROG = "s6-halt" ;
sync() ;
reboot(RB_HALT_SYSTEM) ;
strerr_diefu1sys(111, "reboot()") ;
}
|