Use pthread_sigmask over sigprocmask in an attempt to fix signals on linuxthreads machines

This commit is contained in:
Ron Pedde 2007-01-19 07:11:40 +00:00
parent 0d72198594
commit fb66541657
1 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ int os_signal_server(int what) {
FILE *pid_fp;
int pid;
int result = TRUE;
int signal;
int signal = 0;
if(NULL == (pid_fp = fopen(_os_pidfile, "r"))) {
DPRINTF(E_LOG,L_MAIN,"fdopen: %s\n",strerror(errno));
@ -442,7 +442,7 @@ int _os_start_signal_handler() {
(sigaddset(&set,SIGHUP) == -1) ||
(sigaddset(&set,SIGCLD) == -1) ||
(sigaddset(&set,SIGTERM) == -1) ||
(sigprocmask(SIG_BLOCK, &set, NULL) == -1)) {
(pthread_sigmask(SIG_BLOCK, &set, NULL) == -1)) {
DPRINTF(E_LOG,L_MAIN,"Error setting signal set\n");
return -1;
}