diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-07-26 16:38:29 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-08-28 23:26:39 +0200 |
commit | 193cef0bdcc7b4a7e06a6cf30e96684c9f454863 (patch) | |
tree | 54eb66507f920a6690f9fca765f4633cc585ccc7 /proc/mgt.c | |
parent | 9b3a87f37c4e829386ceb10de974d409a31adcf7 (diff) |
Define and use symbolic names for important processes
* include/pids.h: New file.
* init/init.c (frob_kernel_process): Use symbolic name for kernel process.
* exec/exec.c (S_exec_init): Use symbolic name for startup process.
* libdiskfs/boot-start.c (diskfs_S_fsys_init): Likewise.
* libdiskfs/init-startup.c (_diskfs_init_completed): Likewise.
* pfinet/main.c (arrange_shutdown_notification): Likewise.
* proc/mgt.c (create_startup_proc): Likewise.
* proc/main.c (main): Use symbolic name for proc process.
Diffstat (limited to 'proc/mgt.c')
-rw-r--r-- | proc/mgt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,6 +32,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <sys/resource.h> #include <hurd/auth.h> #include <assert.h> +#include <pids.h> #include "proc.h" #include "process_S.h" @@ -582,7 +583,7 @@ create_startup_proc (void) p = allocate_proc (MACH_PORT_NULL); assert (p); - p->p_pid = 1; + p->p_pid = HURD_PID_STARTUP; p->p_parent = p; p->p_sib = 0; |