summaryrefslogtreecommitdiff
path: root/libthreads/cprocs.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-17 15:18:19 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-17 15:18:19 +0000
commitd0b13df9ddf4db35b6194935d7f023f6e414f71c (patch)
tree3df0bec629f33d4e6e2dcc14d4180c05531a17a6 /libthreads/cprocs.c
parent34eccf57b3d463638339dc56281db4e8fa023a69 (diff)
Include <paths.h>, <error.h>, <sys/wait.h>, and <hurd/msg_reply.h>.
(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.
Diffstat (limited to 'libthreads/cprocs.c')
0 files changed, 0 insertions, 0 deletions