summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2017-03-29 09:19:55 +0200
committerGitHub <noreply@github.com>2017-03-29 09:19:55 +0200
commit3f6179a1fd0ff1a8d27b5e68bef05cda7581c447 (patch)
treebd7b9432e609bf9881a5f5ed6627894ec22eae98 /src
parent2c574e9afe745a62a64d2b1379ebc5a7cb8d25f6 (diff)
parentf9024c71864d9198e47aa02109fa8c78f91e30fd (diff)
Merge pull request #67 from dmz-uk/patch-1
Prevent child from calling exit() on interrupt
Diffstat (limited to 'src')
-rw-r--r--src/child.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/child.c b/src/child.c
index 2c4dc22..effb2ae 100644
--- a/src/child.c
+++ b/src/child.c
@@ -233,6 +233,9 @@ static void child_main (struct child_s *ptr)
ret = select(maxfd + 1, &rfds, NULL, NULL, NULL);
if (ret == -1) {
+ if (errno == EINTR) {
+ continue;
+ }
log_message (LOG_ERR, "error calling select: %s",
strerror(errno));
exit(1);