update to cinit-0.3pre19
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
367a74c75e
commit
7c47ae1c48
1119 changed files with 101885 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue