From 193cef0bdcc7b4a7e06a6cf30e96684c9f454863 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 26 Jul 2013 16:38:29 +0200 Subject: 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. --- init/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index 930408e8..05fce78f 100644 --- a/init/init.c +++ b/init/init.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "startup_notify_U.h" #include "startup_reply_U.h" @@ -770,7 +771,7 @@ frob_kernel_process (void) task_t task; process_t proc, kbs; - err = proc_pid2task (procserver, 2, &task); + err = proc_pid2task (procserver, HURD_PID_KERNEL, &task); if (err) { error (0, err, "cannot get kernel task port"); -- cgit v1.2.3