summaryrefslogtreecommitdiff
path: root/pfinet
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 /pfinet
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 'pfinet')
-rw-r--r--pfinet/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pfinet/main.c b/pfinet/main.c
index 01b324df..c9527195 100644
--- a/pfinet/main.c
+++ b/pfinet/main.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <fcntl.h>
#include <version.h>
+#include <pids.h>
/* Include Hurd's errno.h file, but don't include glue-include/hurd/errno.h,
since it #undef's the errno macro. */
@@ -153,7 +154,7 @@ arrange_shutdown_notification ()
if (!procserver)
return;
- err = proc_getmsgport (procserver, 1, &initport);
+ err = proc_getmsgport (procserver, HURD_PID_STARTUP, &initport);
mach_port_deallocate (mach_task_self (), procserver);
if (err)
return;