commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 38/70: libdiskfs: register libdiskfs-based translators as importa


From: Samuel Thibault
Subject: [hurd] 38/70: libdiskfs: register libdiskfs-based translators as important
Date: Mon, 16 Sep 2013 07:41:41 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 04de8fc618a34d786db9defde983a7f016538e84
Author: Justus Winter <address@hidden>
Date:   Thu Aug 15 09:37:59 2013 +0200

    libdiskfs: register libdiskfs-based translators as important
    
    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)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]