summaryrefslogtreecommitdiff
path: root/exec
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 /exec
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 'exec')
-rw-r--r--exec/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec/main.c b/exec/main.c
index efad85aa..d5d6882a 100644
--- a/exec/main.c
+++ b/exec/main.c
@@ -25,6 +25,7 @@
#include <hurd/startup.h>
#include <argp.h>
#include <version.h>
+#include <pids.h>
const char *argp_program_version = STANDARD_HURD_VERSION (exec);
@@ -246,7 +247,7 @@ S_exec_init (struct trivfs_protid *protid,
proc_register_version (procserver, host_priv, "exec", "", HURD_VERSION);
- err = proc_getmsgport (procserver, 1, &startup);
+ err = proc_getmsgport (procserver, HURD_PID_STARTUP, &startup);
assert_perror (err);
mach_port_deallocate (mach_task_self (), procserver);