Jesse Gross
d8b3070205
fatal-signal: Run signal hooks outside of actual signal handlers.
...
Rather than running signal hooks directly from the actual signal
handler, simply record the fact that the signal occured and run
the hook next time around the poll loop. This allows significantly
more freedom as to what can actually be done in the signal hooks.
2010-01-06 09:11:58 -05:00
Ben Pfaff
2a6cb303b0
fatal-signal: Add clarifying comments.
...
Suggested by Justin Pettit.
2009-09-21 16:56:37 -07:00
Ben Pfaff
6a0061cbf5
fatal-signal: New function fatal_signal_unlink_file_now().
...
This is a helper function that combines two actions that callers commonly
wanted. It will have an additional user in an upcoming commit.
2009-09-21 16:44:58 -07:00
Ben Pfaff
411baaacb8
fatal-signal: Clean up code by using shash.
...
This simplifies the code here and should speed it up, too, when there are
lots of files to unlink on a fatal signal.
2009-09-21 16:44:57 -07:00
Ben Pfaff
a14bc59fb8
Update primary code license to Apache 2.0.
2009-06-15 15:11:30 -07:00
Ben Pfaff
064af42167
Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.
2009-07-08 13:19:16 -07:00