From dd9015992d5b32a404d94fe8e02b7071c0ee31d4 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 14 Aug 2003 03:32:39 +0000 Subject: [PATCH] Unblock signals on return. --- src/odoors/ODSpawn.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/odoors/ODSpawn.c b/src/odoors/ODSpawn.c index ce2c4028ea..8ac24e1baa 100644 --- a/src/odoors/ODSpawn.c +++ b/src/odoors/ODSpawn.c @@ -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 } -- GitLab