Stiffen util/perf-event's contract around signal handlers
Summary:
Be more defensive about things that may affect signal-handling:
- If a SIGIO handler is already installed, fail. This currently issues
a warning, because HHVM should not have any other SIGIO handlers,
unless perhaps the user specifies one via the process control
extension. If anyone is doing that who also wants to use this
module... well, too bad.
- If SIGIO has been blocked, unblock it. In practice, this does in fact
happen due to the behavior of SignalHandlers in the process control
extension.
Reviewed By: markw65
Differential Revision:
D3803684
fbshipit-source-id:
c4e75a907d42da6ee956f6f5c5e1152aa95c59f8