diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2018-10-13 04:16:53 +0200 |
---|---|---|
committer | Andrew Gregory <andrew@archlinux.org> | 2018-11-19 02:25:18 +0100 |
commit | 3a88fcb19199c5b5fa18162f5f9dc8990311dbd2 (patch) | |
tree | cf3fa3f9ec6039ae97a651576db900fd7e5d0000 /test/pacman/tests/TESTS | |
parent | 2a7bdd3e3aabbf9fa3cc31379cadad909e6c1da3 (diff) | |
download | pacman-3a88fcb19199c5b5fa18162f5f9dc8990311dbd2.tar.gz pacman-3a88fcb19199c5b5fa18162f5f9dc8990311dbd2.tar.xz |
handle EINTR while polling scripts/hooks
If poll() is interrupted by a signal, alpm was closing the socket it
uses for listening to script/hook output. This would drop script output
at the least and kill the script at the worst.
Fixes FS#60396
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit ac959bb9c6ce549047a954109ae825158855e386)
Diffstat (limited to 'test/pacman/tests/TESTS')
-rw-r--r-- | test/pacman/tests/TESTS | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pacman/tests/TESTS b/test/pacman/tests/TESTS index fec4bc2f..86126f18 100644 --- a/test/pacman/tests/TESTS +++ b/test/pacman/tests/TESTS @@ -150,6 +150,7 @@ TESTS += test/pacman/tests/replace102.py TESTS += test/pacman/tests/replace103.py TESTS += test/pacman/tests/replace104.py TESTS += test/pacman/tests/replace110.py +TESTS += test/pacman/tests/scriptlet-signal-handling.py TESTS += test/pacman/tests/scriptlet-signal-reset.py TESTS += test/pacman/tests/scriptlet001.py TESTS += test/pacman/tests/scriptlet002.py |