From 81c4437464e58bf46549923432128c6cbe203f4c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 26 Jul 2017 15:53:16 +0200 Subject: axwrapper: Handle EINTR error return from select(). Signed-off-by: Ralf Baechle --- ax25/axwrapper.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ax25/axwrapper.c') 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); } -- cgit v1.2.3