From 8d16db0cc28b2d911aee918d5c3582ad29ddfeed Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Wed, 18 Sep 2013 15:59:31 +0200 Subject: Add proc_set_init_task, make runsystem pid 1 * hurd/process.defs (proc_set_init_task): New procedure. * hurd/process_reply.defs (proc_set_init_task): Likewise. * hurd/process_request.defs (proc_set_init_task): Likewise. * include/pids.h: Add HURD_PID_INIT as 1, adjust others accordingly. * init/init.c (start_child): Register the child task. * proc/proc.h (init_proc): New variable. (create_startup_proc): Rename to create_init_proc. * proc/main.c (main): Create placeholder proc object for pid 1. * proc/mgt.c: Use init_proc instead of startup_proc, as the former is the new root of the process tree. (create_startup_proc): Rename to create_init_proc. (S_proc_set_init_task): New function. * doc/hurd.texi (Server Bootstrap): Update accordingly. * procfs/main.c: Do not hard-code kernel pid, use pids.h instead. --- doc/hurd.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/hurd.texi b/doc/hurd.texi index 8fa6da72..697cce79 100644 --- a/doc/hurd.texi +++ b/doc/hurd.texi @@ -564,7 +564,7 @@ the root filesystem and the exec server. The @option{--multiboot-command-line} option tells the file system server that it is a root filesystem, which triggers it to run @command{/hurd/init} as PID -1. @command{/hurd/init} starts the @command{/hurd/proc} and +2. @command{/hurd/init} starts the @command{/hurd/proc} and @command{/hurd/auth} servers. After the servers are launched @command{/hurd/init} starts the @command{/libexec/runsystem.sh} script to finish booting. -- cgit v1.2.3