aboutsummaryrefslogtreecommitdiff
path: root/libmachdev
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2021-07-11 11:20:42 +1000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-07-11 19:42:25 +0200
commit967fc183fd27607fe0f58af36801793725c7c558 (patch)
tree92ac6a2e6d0b6debbc4f53fa2c5e6196677f0f7e /libmachdev
parentd9f93a335f230fe018747c075734646db70bdb7a (diff)
downloadhurd-967fc183fd27607fe0f58af36801793725c7c558.tar.gz
hurd-967fc183fd27607fe0f58af36801793725c7c558.tar.bz2
hurd-967fc183fd27607fe0f58af36801793725c7c558.zip
Fix /proc/?/exe values for bootstrap processes
This makes libmachdev follow the exec case, and make sure to be waiting for all bootstrap processes by waiting for the FS process. Message-Id: <20210711012042.77920-1-damien@zamaudio.com>
Diffstat (limited to 'libmachdev')
-rw-r--r--libmachdev/trivfs_server.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c
index bbd73555..9c604595 100644
--- a/libmachdev/trivfs_server.c
+++ b/libmachdev/trivfs_server.c
@@ -289,13 +289,12 @@ trivfs_S_fsys_init (struct trivfs_control *fsys,
retry_type retry;
string_t retry_name;
mach_port_t right = MACH_PORT_NULL;
- process_t proc, parent_proc;
+ process_t parent_proc;
/* Traverse to the bootstrapping server first */
task_get_bootstrap_port (mach_task_self (), &bootstrap);
if (bootstrap)
{
-
err = proc_task2proc (procserver, parent_task, &parent_proc);
assert_perror_backtrace (err);
err = fsys_init (bootstrap, parent_proc, MACH_MSG_TYPE_COPY_SEND, authhandle);
@@ -322,18 +321,6 @@ trivfs_S_fsys_init (struct trivfs_control *fsys,
_hurd_libc_proc_init(machdev_argv);
#endif
- /* Mark us as important. */
- proc = getproc ();
- assert_backtrace (proc);
- err = proc_mark_important (proc);
- if (err && err != EPERM)
- assert_perror_backtrace (err);
- err = proc_mark_exec (proc);
- assert_perror_backtrace (err);
- err = proc_set_exe (proc, program_invocation_short_name);
- assert_perror_backtrace (err);
- mach_port_deallocate (mach_task_self (), proc);
-
if (bootstrapping)
{
if (devnode)