Skip to content

Commit

Permalink
SIGPROF for main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv committed Mar 4, 2014
1 parent b5c63cb commit 477ad2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daemon/daemon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ daemon :: run(bool daemonize,
return EXIT_FAILURE;
}

if (pthread_sigmask(SIG_BLOCK, &ss, NULL) < 0)
sigdelset(&ss, SIGPROF);

if (pthread_sigmask(SIG_SETMASK, &ss, NULL) < 0)
{
PLOG(ERROR) << "could not block signals";
return EXIT_FAILURE;
Expand Down

0 comments on commit 477ad2d

Please sign in to comment.