diff options
author | Dan McGee <dan@archlinux.org> | 2008-09-10 14:29:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-10-12 21:28:05 -0500 |
commit | f9be2334f7b01ba30235500cb12d4ed61fff564b (patch) | |
tree | 796b90d94985d8e0ad19f3c05d7f19dd275bc387 /autoclean.sh | |
parent | 18452a6c51827e91f37978397552c30cb92c26cd (diff) | |
download | pacman-f9be2334f7b01ba30235500cb12d4ed61fff564b.tar.xz |
libalpm: handle syscall interruption correctly
It is possible to throw EINTR from a system call such as open(), close(), or
waitpid() if custom signal handlers are set up and they are not initialized
with the SA_RESTART flag. This was noticed by Andreas Radke when ^C (SIGINT)
was given during the call to waitpid(), causing it to throw the EINTR error
and we could not accommodate it.
Simply wrap these calls in a simple loop that allows us to retry the call if
interrupted.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'autoclean.sh')
0 files changed, 0 insertions, 0 deletions