aboutsummaryrefslogtreecommitdiff
path: root/startup
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-12-29 11:12:10 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-29 17:41:39 +0100
commit6eb68a228b387334c259567589838257e2bbdaf9 (patch)
tree0c1e170d555d2643d10da6056fe79c2167fdfbad /startup
parent2c1299afbed9bc78e2d92565c334317622a68f01 (diff)
downloadhurd-6eb68a228b387334c259567589838257e2bbdaf9.tar.gz
hurd-6eb68a228b387334c259567589838257e2bbdaf9.tar.bz2
hurd-6eb68a228b387334c259567589838257e2bbdaf9.zip
Replace deprecated sigmask with sigset_t calls
Message-ID: <20231229161211.312389-2-flaviocruz@gmail.com>
Diffstat (limited to 'startup')
-rw-r--r--startup/startup.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/startup/startup.c b/startup/startup.c
index 862572c2..27af818b 100644
--- a/startup/startup.c
+++ b/startup/startup.c
@@ -826,9 +826,12 @@ main (int argc, char **argv, char **envp)
/* All programs we start should ignore job control stop signals.
That way Posix.1 B.2.2.2 is satisfied where it says that programs
not run under job control shells are protected. */
- default_ints[INIT_SIGIGN] = (sigmask (SIGTSTP)
- | sigmask (SIGTTIN)
- | sigmask (SIGTTOU));
+ sigset_t sigmask;
+ sigemptyset (&sigmask);
+ sigaddset (&sigmask, SIGTSTP);
+ sigaddset (&sigmask, SIGTTIN);
+ sigaddset (&sigmask, SIGTTOU);
+ default_ints[INIT_SIGIGN] = sigmask;
default_ports[INIT_PORT_BOOTSTRAP] = startup;
run ("/hurd/proc", default_ports, &proctask, proc_insert_ports);