diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-08-06 22:36:00 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-09-23 13:43:16 +0200 |
commit | c792262b137a5f2daddac22f82e7d8d98d0d7d31 (patch) | |
tree | d3177e6c722a96da72503a912d4c5fded0ef78e8 /etc/Makefile.am | |
parent | 9c066dff439ba453f4c362e1875b794cf3f362ed (diff) | |
download | pacman-c792262b137a5f2daddac22f82e7d8d98d0d7d31.tar.gz pacman-c792262b137a5f2daddac22f82e7d8d98d0d7d31.tar.xz |
wrap fgets to retry on EINTR
The read() underlying fgets() can be interrupted by a signal handler
causing fgets() to return NULL. Before we started handling SIGWINCH,
the odds of interrupting a read were low and typically resulted in
termination anyway. Replace all fgets calls with a wrapper that retries
in EINTR.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'etc/Makefile.am')
0 files changed, 0 insertions, 0 deletions