Homec4science

Add a signal handler for SIGUSR2.

Authored by Kris Buist <krisbuist@gmail.com> on Dec 3 2013, 13:05.

Description

Add a signal handler for SIGUSR2.

Summary: For being able to notify (/waking) a sleeping daemon, a signal handler for the SIGUSR2 is added to the DaemonOverseer. This signal will be send to the child process which can implement a signal handler.

Test Plan: Put a PhutilDaemon (with a signal handler on SIGUSR2) to sleep for 10 minutes. Meanwhile, send a SIGURS2 to the daemon and see it being waked up.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran, richardvanvelzen

Differential Revision: https://secure.phabricator.com/D7676

Details

Committed
epriestley <git@epriestley.com>Dec 3 2013, 13:06
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU9b2211b4ca72: Raise an exception if LDAP search fails
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU5085f26935d4: Add a signal handler for SIGUSR2. (authored by Kris Buist <krisbuist@gmail.com>).Dec 3 2013, 13:06