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

Unblock signals on return.

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