Register libdiskfs-based translators running as root as important
processes at the proc server.

* libdiskfs/init-startup.c (_diskfs_init_completed): Mark us as important.
---
 libdiskfs/init-startup.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c
index ff1622f..bf955d2 100644
--- a/libdiskfs/init-startup.c
+++ b/libdiskfs/init-startup.c
@@ -191,6 +191,13 @@ _diskfs_init_completed ()
   if (err)
     goto errout;
 
+  /* Mark us as important.  */
+  err = proc_mark_important (proc);
+  /* This might fail due to permissions or because the old proc server
+     is still running, ignore any such errors.  */
+  if (err && err != EPERM && err != EMIG_BAD_ID)
+    goto errout;
+
   err = proc_getmsgport (proc, HURD_PID_STARTUP, &init);
   mach_port_deallocate (mach_task_self (), proc);
   if (err)
-- 
1.7.10.4


-- 
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1376552287-11832-10-git-send-email-4win...@informatik.uni-hamburg.de

Reply via email to