aboutsummaryrefslogtreecommitdiff
path: root/init
Commit message (Collapse)AuthorAgeFilesLines
...
* 1999-06-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-011-1/+145
| | | | | | | | * init.c (kernel_command_line): New variable. (frob_kernel_process): New function. (S_startup_essential_task): Call it after init_stdarrays. (options): Add --kernel-command-line/-K option. (parse_opt): Grok -K, set kernel_command_line.
* Sat Mar 6 17:13:48 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-062-0/+10
| | | | | * init.c (do_mach_notify_dead_name): Deallocate the extra reference to NAME that the notification carries.
* Tue Feb 16 18:54:33 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-182-2/+7
| | | | | * init.c (shutdown_terminal): Revoke access to the terminal from existing programs.
* .Roland McGrath1998-10-241-11/+15
|
* 1998-10-24 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-59/+54
| | | | | * init.c (main): Don't bogusly clear bootstrap_args. Reported by OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>.
* Tue May 12 12:03:38 1998 Thomas Bushnell, n/BSG <tb@mit.edu>Thomas Bushnell1998-05-122-1/+9
| | | | | | * init.c (setup_terminal): Free LINE after done using it. (process_rc_script): Likewise free RCARGS. Both reported by Katusya Tanaka (wyvern@pb3.so-net.ne.jp).
* .Miles Bader1997-07-031-0/+8
|
* (parse_opt):Miles Bader1997-07-031-26/+50
| | | | | | | | | | | New function. (bootstrap_args): Initialize to 0. (main): Parse args using argp. Include <argp.h>. (options, doc): New variables.
* *** empty log message ***Thomas Bushnell1996-09-172-3/+9
|
* *** empty log message ***Thomas Bushnell1996-09-052-4/+9
|
* .Miles Bader1996-08-141-0/+6
|
* (LDLIBS): New variable.Miles Bader1996-08-141-2/+3
| | | | | (init): Dependcy on -lutil removed. (libutil-libsubst): Variable removed.
* *** empty log message ***Thomas Bushnell1996-08-122-26/+80
|
* Initial revisionRoland McGrath1996-07-171-0/+491
|
* (process_signal): Set WUNTRACED in call to waitpid.Michael I. Bushnell1996-07-161-1/+1
|
* (init_stdarrays): Don't use unsafe MOVE_SEND in call to interruptibleMichael I. Bushnell1996-07-081-2/+6
| | | | | proc_setexecdata. (open_console): Likewise, for file_set_translator.
* (init): Add libports (because libfshelp.so requires it, lose loseMichael I. Bushnell1996-07-031-1/+1
| | | | lose).
* (process_signal) [case SIGCHLD]: Correctly place `break' *outside* ofMichael I. Bushnell1996-07-031-2/+1
| | | | for loop.
* (process_signal): On SIGCHLD, keep reaping children until we get anMichael I. Bushnell1996-07-011-54/+56
| | | | error; tolerate all errors silently.
* (kill_multi_user): Kill user tasks before doing notify_shutdown.Michael I. Bushnell1996-06-241-3/+3
|
* (open_console):Miles Bader1996-06-211-6/+7
| | | | | Print an error messages for /dev/console not being a terminal. Reduce the scope of some variables.
* (open_console): Print an error message for /dev/console failing.Miles Bader1996-06-211-5/+5
|
* (open_console):Miles Bader1996-06-211-6/+8
| | | | | Pass correct length of argument vector when setting active translators. <maptime.h>: New include.
* *** empty log message ***Michael I. Bushnell1996-06-211-0/+8
|
* (_PATH_RUNCOM): Move to /libexec/rc.Michael I. Bushnell1996-06-201-1/+1
|
* (init_ttys, reread_ttys): Test return value of setttyent correctly.Michael I. Bushnell1996-06-191-2/+2
|
* (init_ttys): Return non-zero if we fail.Michael I. Bushnell1996-06-191-11/+36
| | | | | | | | (startup_terminal): Return non-zero if we don't actually start anything. (startup_ttys): Return non-zero if we fail. (launch_multi_user): If init_ttys fails, go back to single. If we go multi, actually set system_state accordingly. If startup_ttys fails, go back to single.
* (S_startup_essential_task): fixupMichael I. Bushnell1996-06-191-0/+1
|
* (run_for_real): Return zero if we fail.Michael I. Bushnell1996-06-191-11/+38
| | | | | | | | | (startup_terminal): Deal properly if one of the run_for_real's fails. (launch_single_user): If the shell can't be started, crash the system. (process_rc_script): Return non-zero if run_for_real fails. (process_signal) [SIGCHLD]: If process_rc_script fails, go back to single-user. (S_startup_essential_task): Likewise.
* Include <ttyent.h>, <argz.h>, and <utmp.h>.Michael I. Bushnell1996-06-191-55/+278
| | | | | | | | | | | | | | | (add_terminal, init_ttys, free_ttys, startup_terminal, startup_ttys, find_line, reread_ttys, restart_terminal): New functions. (launch_multi_user): Use new functions to do things right. (session_pid): Delete variable. (kill_multi_user): Call free_ttys. (process_signal) [SIGHUP]: Call reread_ttys. [SIGCHLD/MULTI]: Call restart_terminal. (run_for_real): New arg `setsid'; only do setsid if it's set. All callers changed. Return the pid of the new program, not the task port. All callers changed. Include "mung_msg_S.h" instead of "msg_S.h". (S_msg_sig_post, S_msg_sig_post_untraced): Include SIGCODE parm.
* (libutil-libsubst): Define (as -lutil).Michael I. Bushnell1996-06-171-0/+1
|
* (init): Link against -lutil.Michael I. Bushnell1996-06-171-1/+1
|
* (dir): Now init.Michael I. Bushnell1996-06-171-1/+1
|
* Include "mung_msg_S.h" instead of "msg_S.h".Michael I. Bushnell1996-06-171-3/+3
| | | | (S_msg_sig_post, S_msg_sig_post_untraced): Include SIGCODE parm.
* (mung_msg_S.h): New rule.Michael I. Bushnell1996-06-171-0/+3
|
* Include <paths.h>, <error.h>, <sys/wait.h>, and <hurd/msg_reply.h>.Michael I. Bushnell1996-06-171-109/+422
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (run_for_real, open_console, process_signal, reboot_mach, run_for_real, run, reboot_system): Use error instead of fprintf. (notify_shutdown): Always emit terminating newline. (S_startup_essential_task): When all core servers have showed up, call launch_single_user only if RB_SINGLE; otherwise call process_rc_script. Call init_stdarrays here. (open_console): New function; massaged guts taken from launch_single_user. Be more verbose if we do something unusual. (launch_single_user): Call open_console. Don't call init_stdarrays here. (system_state, default_ints): New variables. (main): Initialize SYSTEM_STATE and DEFAULT_INTS. (run_for_real): Pass default_ints. (run): Likewise. (S_startup_essential_task): Delete var INITDONE; use SYSTEM_STATE instead. (launch_single_user): Set SYSTEM_STATE to SINGLE. (process_rc_script): New function. (launch_multi_user): New function. (kill_everyone): New function. (kill_multi_user): New function. (do_fastboot, rc_pid, session_pid): New variables. (process_signal): New function; guts from S_msg_sig_post_untraced. Handle state transitions here when programs exit. Process SIGTERM, and SIGHUP appropriately. (_PATH_RUNCOM, _PATH_LOGIN): New macros. (S_msg_sig_post_untraced): Only validate signal here; use process_signal to do the work, but reply first. (S_msg_sig_post): Likewise. (notify_shutdown): New function. (reboot_system): Use notify_shutdown.
* (S_startup_request_notification): Fill NT->name correctly.Michael I. Bushnell1996-06-121-1/+1
|
* (S_startup_request_notification): Doc fix.Michael I. Bushnell1996-06-121-0/+3
|
* (launch_single_user): Open TERM RDWR. Use openport to get FD from TERM.Miles Bader1996-05-271-5/+5
|
* (launch_single_user): Print errno on assertion failure.Miles Bader1996-05-271-1/+3
|
* (reboot_mach): Insert a brief pause before actually rebooting theMichael I. Bushnell1996-05-241-0/+1
| | | | | kernel so that the user has a chance to see any messages that may be displayed.
* (S_msg_describe_ports): typo.Michael I. Bushnell1996-05-141-1/+1
|
* (S_msg_get_exec_flags, S_msg_set_all_exec_flags,Michael I. Bushnell1996-05-141-13/+11
| | | | | | S_msg_set_some_exec_flags, S_msg_clear_some_exec_flags): Delete functions. (S_msg_describe_ports): New function.
* (reboot_system): Print prettier messages for shutdown notifications.Michael I. Bushnell1996-05-141-8/+9
|
* <hurd/startup_notify.h> -> "startup_notify_U.h".Michael I. Bushnell1996-05-101-1/+1
|
* (OBJS): Add startup_notifyUser.o.Michael I. Bushnell1996-05-101-1/+2
|
* Include <hurd/startup_notify.h>.Michael I. Bushnell1996-05-091-12/+9
| | | | | | | | (struct ntfy_task): New member `name'. (S_startup_request_notification): Expect and record name. (S_msg_startup_dosync): Delete function. (reboot_system): Use new startup_dosync interface. (init_stdarrays): Use new authentication interface.
* (init_version): Upgrade to 0.0.Michael I. Bushnell1996-05-061-1/+1
|
* (reboot_system): Not *yet*.Michael I. Bushnell1996-04-291-0/+4
|
* (reboot_system): Make that 1 minute.Roland McGrath1996-04-281-1/+1
|