diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-04 14:20:01 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-06-04 14:20:01 -0700 |
commit | 69446be1ee063771f2e0b498a50f9b0787ea70c7 (patch) | |
tree | be5ecf3a473052475218df605d350a204666c750 /proc.h | |
parent | cc90f9cf803bc4aba928b2a80be451d9b717c5f0 (diff) |
Signal handling cleanup and improved safety
Fixes issue where you couldn't control-C out of a loop (https://github.com/ridiculousfish/fishfish/issues/13)
Also stops doing memory allocation in the signal handler (oops) https://github.com/ridiculousfish/fishfish/issues/27
Diffstat (limited to 'proc.h')
-rw-r--r-- | proc.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -433,7 +433,9 @@ typedef std::list<job_t *> job_list_t; bool job_list_is_empty(void); -/** A class to aid iteration over jobs list */ +/** A class to aid iteration over jobs list. + Note this is used from a signal handler, so it must be careful to not allocate memory. +*/ class job_iterator_t { job_list_t * const job_list; job_list_t::iterator current, end; |