Skip to content

Commit

Permalink
signal handling: dont catch any interrupts if zsys_handler_reset(NULL…
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Haberler committed May 20, 2015
1 parent c52e675 commit e08fcec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zsys.c
Expand Up @@ -163,8 +163,8 @@ zsys_init (void)
s_logsystem = false;
}
// Catch SIGINT and SIGTERM unless ZSYS_SIGHANDLER=false
if (getenv ("ZSYS_SIGHANDLER") == NULL
|| strneq (getenv ("ZSYS_SIGHANDLER"), "false"))
if ((getenv ("ZSYS_SIGHANDLER") == NULL
|| strneq (getenv ("ZSYS_SIGHANDLER"), "false")) && s_first_time)
zsys_catch_interrupts ();

ZMUTEX_INIT (s_mutex);
Expand Down

0 comments on commit e08fcec

Please sign in to comment.