diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 15:53:16 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 15:53:16 +0200 |
commit | 81c4437464e58bf46549923432128c6cbe203f4c (patch) | |
tree | 0ac370b1561c0dea0ba2c552722099435a71f73e | |
parent | 004dd7e64ccf0241e95cb80e2c5293652def8aa0 (diff) |
axwrapper: Handle EINTR error return from select().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | ax25/axwrapper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ax25/axwrapper.c b/ax25/axwrapper.c index eaa387c..ad2995a 100644 --- a/ax25/axwrapper.c +++ b/ax25/axwrapper.c @@ -176,6 +176,9 @@ int main(int argc, char **argv) len = select(256, &fdset, NULL, NULL, &tv); if (len == -1) { + if (errno == EINTR) + continue; + perror("axwrapper: select"); exit(1); } |