summaryrefslogtreecommitdiffstats
path: root/libcrecovery/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrecovery/system.c')
-rw-r--r--libcrecovery/system.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcrecovery/system.c b/libcrecovery/system.c
index 6d78ae946..c5dd550fe 100644
--- a/libcrecovery/system.c
+++ b/libcrecovery/system.c
@@ -66,11 +66,11 @@ __system(const char *command)
_exit(127);
}
- intsave = (sig_t) bsd_signal(SIGINT, SIG_IGN);
- quitsave = (sig_t) bsd_signal(SIGQUIT, SIG_IGN);
+ intsave = (sig_t) signal(SIGINT, SIG_IGN);
+ quitsave = (sig_t) signal(SIGQUIT, SIG_IGN);
pid = waitpid(pid, (int *)&pstat, 0);
sigprocmask(SIG_SETMASK, &omask, NULL);
- (void)bsd_signal(SIGINT, intsave);
- (void)bsd_signal(SIGQUIT, quitsave);
+ (void)signal(SIGINT, intsave);
+ (void)signal(SIGQUIT, quitsave);
return (pid == -1 ? -1 : pstat);
}