From 6eb68a228b387334c259567589838257e2bbdaf9 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Fri, 29 Dec 2023 11:12:10 -0500 Subject: Replace deprecated sigmask with sigset_t calls Message-ID: <20231229161211.312389-2-flaviocruz@gmail.com> --- startup/startup.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'startup') 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); -- cgit v1.2.3