strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
567019c
)
reread notify socket when interrupted (EINTR) through sigchild
author
Martin Willi
<martin@strongswan.org>
Fri, 10 Aug 2007 06:01:03 +0000
(06:01 -0000)
committer
Martin Willi
<martin@strongswan.org>
Fri, 10 Aug 2007 06:01:03 +0000
(06:01 -0000)
src/dumm/mconsole.c
patch
|
blob
|
history
diff --git
a/src/dumm/mconsole.c
b/src/dumm/mconsole.c
index
32c969b
..
01547e1
100644
(file)
--- a/
src/dumm/mconsole.c
+++ b/
src/dumm/mconsole.c
@@
-20,6
+20,7
@@
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
+#include <errno.h>
#include <sys/un.h>
#include <debug.h>
@@
-187,7
+188,10
@@
static bool wait_for_notify(private_mconsole_t *this, char *nsock)
close(this->notify);
return FALSE;
}
- len = recvfrom(this->notify, ¬ify, sizeof(notify), 0, NULL, 0);
+ do
+ {
+ len = recvfrom(this->notify, ¬ify, sizeof(notify), 0, NULL, 0);
+ } while (len < 0 && errno == EINTR);
if (len < 0 || len >= sizeof(notify))
{
DBG1("reading from mconsole notify socket failed: %m");