main: restore original signal handling removed in error.
This commit is contained in:
parent
3c5f789d6c
commit
82ac35c078
1 changed files with 4 additions and 1 deletions
|
@ -490,6 +490,8 @@ main(int argc, char **argv)
|
|||
tvheadend_webroot = tmp;
|
||||
}
|
||||
|
||||
signal(SIGPIPE, handle_sigpipe); // will be redundant later
|
||||
|
||||
/* Daemonise */
|
||||
if(opt_fork) {
|
||||
const char *homedir;
|
||||
|
@ -561,7 +563,8 @@ main(int argc, char **argv)
|
|||
time(&dispatch_clock);
|
||||
|
||||
/* Signal handling */
|
||||
signal(SIGPIPE, handle_sigpipe);
|
||||
sigfillset(&set);
|
||||
sigprocmask(SIG_BLOCK, &set, NULL);
|
||||
trap_init(argv[0]);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue