Skip to content

Commit

Permalink
Merge pull request #75 from mephi42/master
Browse files Browse the repository at this point in the history
Ignore SIGHUP when starting as PID 1
  • Loading branch information
xrmx committed Nov 15, 2016
2 parents 4e8c247 + ecce5b8 commit 42509aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootchartd.in
Expand Up @@ -100,6 +100,8 @@ start()
# Wait for the boot process to end.
wait_boot()
{
trap "" SIGHUP

# Wait for /proc first - without it we have issues
while [ ! -e /proc/cmdline ]; do
$USLEEP 5000
Expand Down
2 changes: 2 additions & 0 deletions collector/collector.c
Expand Up @@ -840,6 +840,8 @@ int main (int argc, char *argv[])
return 0;
}

signal(SIGHUP, SIG_IGN);

if (enter_environment (args.console_debug))
return 1;

Expand Down

0 comments on commit 42509aa

Please sign in to comment.