Commit 2a8f956b authored by Ronny Wichers Schreur's avatar Ronny Wichers Schreur 🏢
Browse files

Only disable SIGALRM (timer events) during compilation on Linux.

parent 323949d2
......@@ -237,9 +237,11 @@ int call_caching_compiler (CleanCharArray args)
{
int r;
char result_string[RESULT_SIZE], *end;
#if defined (LINUX)
void (*oldhandler)(int);
oldhandler = signal (SIGALRM, SIG_IGN);
#endif
log ("call_caching_compiler\n");
......@@ -253,7 +255,9 @@ int call_caching_compiler (CleanCharArray args)
if (fgets(result_string,RESULT_SIZE,compiler_results) == NULL){
perror ("clm: reading compiler result failed");
/* exit (1); */
#if defined (LINUX)
(void) signal (SIGALRM, oldhandler);
#endif
return 0;
}
......@@ -265,7 +269,9 @@ int call_caching_compiler (CleanCharArray args)
/* FIXME, clm/CleanIDE don't correspond
return r>=0; */
#if defined (LINUX)
(void) signal (SIGALRM, oldhandler);
#endif
return r;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment