[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 27/28: mach-defpager: Fix daemonization.
From: |
Samuel Thibault |
Subject: |
[hurd] 27/28: mach-defpager: Fix daemonization. |
Date: |
Wed, 16 Nov 2016 08:30:28 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 345abeda66c8aa5cb4d121fc8455cbe8053b9db6
Author: Justus Winter <address@hidden>
Date: Tue Nov 1 16:29:31 2016 +0100
mach-defpager: Fix daemonization.
* mach-defpager/main.c (main): Do not hang if the child dies.
---
mach-defpager/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mach-defpager/main.c b/mach-defpager/main.c
index e33c2b3..71615c8 100644
--- a/mach-defpager/main.c
+++ b/mach-defpager/main.c
@@ -104,9 +104,11 @@ main (int argc, char **argv)
exitting, and the child sends that signal after it is set up. */
sigset_t set;
signal (SIGUSR1, nohandler);
+ signal (SIGCHLD, nohandler);
sigemptyset (&set);
sigaddset (&set, SIGUSR1);
- sigprocmask (SIG_BLOCK, &set, 0);
+ sigaddset (&set, SIGCHLD);
+ sigprocmask (SIG_SETMASK, &set, NULL);
switch (fork ())
{
case -1:
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 22/28: eth-multiplexer: Fix packet delivery., (continued)
- [hurd] 22/28: eth-multiplexer: Fix packet delivery., Samuel Thibault, 2016/11/16
- [hurd] 16/28: boot: Allow unprivileged users to boot Subhurds., Samuel Thibault, 2016/11/16
- [hurd] 17/28: boot: Add a default boot script., Samuel Thibault, 2016/11/16
- [hurd] 10/28: Add missing spinlock initializers, Samuel Thibault, 2016/11/16
- [hurd] 23/28: eth-multiplexer: Fix retrieving status of virtual interfaces., Samuel Thibault, 2016/11/16
- [hurd] 26/28: boot: Improve device pass-through., Samuel Thibault, 2016/11/16
- [hurd] 25/28: eth-multiplexer: Generate stable ethernet addresses., Samuel Thibault, 2016/11/16
- [hurd] 05/28: Mark library stubs as weak, Samuel Thibault, 2016/11/16
- [hurd] 13/28: boot: Quote arguments containing spaces., Samuel Thibault, 2016/11/16
- [hurd] 09/28: boot: Remove hacks for running boot on UX., Samuel Thibault, 2016/11/16
- [hurd] 27/28: mach-defpager: Fix daemonization.,
Samuel Thibault <=
- [hurd] 07/28: libdiskfs: Factorize code for last hard reference being released, Samuel Thibault, 2016/11/16
- [hurd] 14/28: boot: Move bootscript callbacks., Samuel Thibault, 2016/11/16
- [hurd] 20/28: libbpf: Merge the Berkeley Packet Filter library., Samuel Thibault, 2016/11/16
- [hurd] 21/28: eth-multiplexer: Merge the eth-multiplexer., Samuel Thibault, 2016/11/16