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

Don't run the kernel when spawned.

parent c7aa2111
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,14 @@ ODAPIDEF BOOL ODCALL od_spawn(char *pszCommandLine)
#endif /* ODPLAT_WIN32 */
#ifdef ODPLAT_NIX
sigset_t block;
/* Suspend kernel */
sigemptyset(&block);
sigaddset(&block,SIGALRM);
sigprocmask(SIG_BLOCK,&block,NULL);
return(system(pszCommandLine)==-1);
sigprocmask(SIG_UNBLOCK,&block,NULL);
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment