commit | 9b14ad541068d4f7d0be9bcd1ff4c70090d868d3 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sat Sep 01 01:54:44 2018 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sat Sep 01 02:06:10 2018 -0400 |
tree | ee80fd4be7d6d4a96858e02d76e4b53f038bf35d | |
parent | 0b4c92b7acf63529858e7f8a3bb6505cd2b6e962 [diff] |
always terminate by SIGABRT when abort is called Linux makes this surprisingly difficult, but it can be done. the trick here is using the fact that we control the implementation of sigaction to prevent changing the disposition of SIGABRT to anything but SIG_DFL after abort has tried and failed to terminate the process simply by calling raise(SIGABRT).