update to cinit-0.3pre19

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-11-30 07:27:49 +01:00
commit 7c47ae1c48
1119 changed files with 101885 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/***********************************************************************
*
* 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;
}