projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2301c14
)
Handled interrupted socket reads
author
Andrew Bays
<abays@redhat.com>
Fri, 19 Oct 2018 14:05:44 +0000
(10:05 -0400)
committer
Andrew Bays
<andrew.bays@gmail.com>
Thu, 5 Sep 2019 13:37:43 +0000
(09:37 -0400)
src/connectivity.c
patch
|
blob
|
history
diff --git
a/src/connectivity.c
b/src/connectivity.c
index
45b65aa
..
ca7b286
100644
(file)
--- a/
src/connectivity.c
+++ b/
src/connectivity.c
@@
-534,6
+534,12
@@
static int read_event(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;