Mirror of git://git.busybox.net/busybox with our patches on top
Source
// //message(L_LOG | L_CONSOLE, "Device %s cannot be opened in RW mode", a->terminal /*, strerror(errno)*/);
/* vi: set sw=4 ts=4: */
/*
* Mini init implementation for busybox
*
* Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
* Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
* Adjusted by so many folks, it's impossible to keep track.
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
/* Was a CONFIG_xxx option. A lot of people were building
* not fully functional init by switching it on! */
/* Number of env. vars */
/*
* When a file named CORE_ENABLE_FLAG_FILE exists, setrlimit is called
* before processes are spawned to set core file size as unlimited.
* This is for debugging only. Don't use this is production, unless
* you want core dumps lying about....
*/
/* inittab file location */
/* Default sysinit script. */
/* Allowed init action types */
/* like respawn, but wait for <Enter> to be pressed on tty: */
/* Set up a linked list of init_actions, to be read from inittab */
struct init_action {
struct init_action *next;
pid_t pid;
uint8_t action_type;
char terminal[CONSOLE_NAME_SIZE];
char command[COMMAND_SIZE];
};
/* Static variables */
static struct init_action *init_action_list = NULL;
static const char *log_console = VC_5;