summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-07-26 16:38:29 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-08-28 23:26:39 +0200
commit193cef0bdcc7b4a7e06a6cf30e96684c9f454863 (patch)
tree54eb66507f920a6690f9fca765f4633cc585ccc7 /init/init.c
parent9b3a87f37c4e829386ceb10de974d409a31adcf7 (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 'init/init.c')
-rw-r--r--init/init.c3
1 files changed, 2 insertions, 1 deletions
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 <maptime.h>
#include <version.h>
#include <argp.h>
+#include <pids.h>
#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");