diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-10-05 23:55:40 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-10-06 00:01:52 +0200 |
commit | 1d92611cc4bccbd8b5c19a596ab950e31be44c91 (patch) | |
tree | 66913ec7de6ab1680bd795f963dc850494bb5fb9 /sfeed_html.c | |
parent | bb6dd44d8638ccba315973f2c6c66262ef72f1d2 (diff) |
sfeed_update: handle signals consistently in different shells
- Handle SIGTERM properly, don't leave stray processes. Kill them on both
SIGTERM and SIGINT.
- When a "batch" of feeds was interrupted, don't allow to wait again.
- Simplify and create sighandler function.
- Now on both SIGTERM and SIGINT the cleanup() handler is called to not leave
stray files.
Tested with ksh, dash, bash, zsh.
Diffstat (limited to 'sfeed_html.c')
0 files changed, 0 insertions, 0 deletions