Skip to content
Snippets Groups Projects
Commit dd901599 authored by deuce's avatar deuce
Browse files

Unblock signals on return.

parent 134c3a7d
Branches
Tags
No related merge requests found
......@@ -225,13 +225,22 @@ ODAPIDEF BOOL ODCALL od_spawn(char *pszCommandLine)
#ifdef ODPLAT_NIX
sigset_t block;
struct itimerval itv;
struct sigaction act;
int retval;
/* Suspend kernel */
sigemptyset(&block);
sigaddset(&block,SIGALRM);
sigprocmask(SIG_BLOCK,&block,NULL);
return(system(pszCommandLine)==-1);
retval=system(pszCommandLine);
/* Restore kernel */
sigemptyset(&block);
sigaddset(&block,SIGALRM);
sigprocmask(SIG_UNBLOCK,&block,NULL);
return(retval==-1);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment