www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre19/src/client/halt.kill.c
Nico Schottelius 7c47ae1c48 update to cinit-0.3pre19
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-11-30 07:27:49 +01:00

25 lines
537 B
C

/***********************************************************************
*
* 2007 Nico Schottelius (nico-cinit at schottelius.org)
*
* part of cLinux/cinit
*
* Halt the system through a kill call
*/
#include <signal.h> /* kill() */
#include "messages.h" /* MSG_* */
#include "intern.h" /* print_errno() */
#include "signals.h" /* signals mapping */
int main()
{
if(kill(1, SIG_CINIT_HALT) == -1) {
print_errno(MSG_HALT_KILL);
return 1;
}
return 0;
}