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 /libdiskfs | |
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 'libdiskfs')
-rw-r--r-- | libdiskfs/boot-start.c | 3 | ||||
-rw-r--r-- | libdiskfs/init-startup.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index b62d5f30..6d9a7734 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -33,6 +33,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <string.h> #include <argz.h> #include <error.h> +#include <pids.h> #include "fsys_S.h" #include "fsys_reply_U.h" @@ -606,7 +607,7 @@ diskfs_S_fsys_init (mach_port_t port, proc_register_version (procserver, host, diskfs_server_name, "", diskfs_server_version); - err = proc_getmsgport (procserver, 1, &startup); + err = proc_getmsgport (procserver, HURD_PID_STARTUP, &startup); if (!err) { startup_essential_task (startup, mach_task_self (), MACH_PORT_NULL, diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c index 2c0814fd..ff1622f0 100644 --- a/libdiskfs/init-startup.c +++ b/libdiskfs/init-startup.c @@ -26,6 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <error.h> #include <hurd/fsys.h> #include <hurd/startup.h> +#include <pids.h> char *_diskfs_chroot_directory; @@ -190,7 +191,7 @@ _diskfs_init_completed () if (err) goto errout; - err = proc_getmsgport (proc, 1, &init); + err = proc_getmsgport (proc, HURD_PID_STARTUP, &init); mach_port_deallocate (mach_task_self (), proc); if (err) goto errout; |