Merge pull request #67 from dmz-uk/patch-1
Prevent child from calling exit() on interrupt
This commit is contained in:
commit
3f6179a1fd
@ -233,6 +233,9 @@ static void child_main (struct child_s *ptr)
|
|||||||
|
|
||||||
ret = select(maxfd + 1, &rfds, NULL, NULL, NULL);
|
ret = select(maxfd + 1, &rfds, NULL, NULL, NULL);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
|
if (errno == EINTR) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
log_message (LOG_ERR, "error calling select: %s",
|
log_message (LOG_ERR, "error calling select: %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user