Skip to content

Commit

Permalink
Avoid terminating application on SIGHUP
Browse files Browse the repository at this point in the history
Fixes hluk#1383

Signed-off-by: Lukas Holecek <[email protected]>
  • Loading branch information
hluk committed May 17, 2020
1 parent 31b6cfb commit 4357e04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/unix/unixsignalhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ bool initUnixSignalHandler()
sigact.sa_flags = 0;
sigact.sa_flags |= SA_RESTART;

if ( sigaction(SIGHUP, &sigact, nullptr) > 0
|| sigaction(SIGINT, &sigact, nullptr) > 0
if ( sigaction(SIGINT, &sigact, nullptr) > 0
|| sigaction(SIGTERM, &sigact, nullptr) > 0 )
{
log("sigaction() failed!", LogError);
Expand Down

0 comments on commit 4357e04

Please sign in to comment.