projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handled interrupted socket reads
[collectd.git]
/
src
/
connectivity.c
diff --git
a/src/connectivity.c
b/src/connectivity.c
index
ec2f7e3
..
c470c99
100644
(file)
--- a/
src/connectivity.c
+++ b/
src/connectivity.c
@@
-558,6
+558,12
@@
static int read_event(int nl, int (*msg_handler)(struct nlmsghdr *)) {
continue;
}
+ if (errno == EINTR)
+ {
+ // Interrupt, so just return
+ return 0;
+ }
+
/* Anything else is an error */
ERROR("connectivity plugin: read_event: Error recv: %d", status);
return status;