423ba10303
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
20 lines
357 B
C
20 lines
357 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;
|
|
|
|
/* FIXME: perhaps fork before? And return to standard after? */
|
|
execv(SULOGIN,nargv);
|
|
_exit(1);
|
|
}
|