import cinit from unix.schottelius.org

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-09-16 12:53:45 +02:00
commit 423ba10303
13396 changed files with 269468 additions and 0 deletions

View file

@ -0,0 +1,19 @@
/*
* (c) 2005 Nico Schottelius (nico-linux at schottelius.org)
* terminate: terminate our watching pid
* part of cinit
*/
#include "cinit.h"
#include <unistd.h>
void sig_terminate(int signal)
{
char *nargv[2];
nargv[0] = SULOGIN;
nargv[1] = NULL;
execv(SULOGIN,nargv);
_exit(1);
}