www.nico.schottelius.org/software/cinit/browse_source/cinit-0.2.1/serv/panic.c
Nico Schottelius 423ba10303 import cinit from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-09-16 12:53:45 +02:00

19 lines
290 B
C

/*
* (c) 2005 Nico Schottelius (nico-linux at schottelius.org)
* panic: if cinit fails, start sulogin
* part of cinit
*/
#include "cinit.h"
#include <unistd.h>
void panic(void)
{
char *nargv[2];
nargv[0] = SULOGIN;
nargv[1] = NULL;
execv(SULOGIN,nargv);
_exit(1);
}