commit | fe374d8c401b9c4af8d2a515f944f3875515dd07 | [log] [tgz] |
---|---|---|
author | Guy Harris <guy@alum.mit.edu> | Fri Mar 30 12:49:48 2018 -0700 |
committer | Guy Harris <guy@alum.mit.edu> | Fri Mar 30 12:49:48 2018 -0700 |
tree | 524dbb078700c99e33689e7b63608274b61ce61b | |
parent | 5206cd9ec988dcde67c11d6e5311286d5b488801 [diff] |
Use sigaction(), not signal(), to catch signals on UN*X. We don't want to rely on signal() not resetting the signal handler. The Single UNIX Specification says it's implementation-defined whether that happens. Use sigaction(), instead, where, if you don't request that the signal handler be reset, it's not reset.