aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-05-11 13:13:35 +0300
committerSergey Poznyakoff <gray@gnu.org>2021-05-11 13:13:35 +0300
commit85bd8ac4fe2cb3631f0b6f22a8f05f8f2a914721 (patch)
tree8b06e0f5dd8ddaba8dcf9d1040388f43baf625e9
parentbc3bc8bc19d6cdc20e0e2d09dcf44ffe38de57c0 (diff)
downloadrpipe-85bd8ac4fe2cb3631f0b6f22a8f05f8f2a914721.tar.gz
rpipe-85bd8ac4fe2cb3631f0b6f22a8f05f8f2a914721.tar.bz2
Bugfix
* src/server.c (srv_progout_hup): Don't disconnect the server: it is needed to report child exit status later. Just clear the POLLIN bit.
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index 8e4d0d6..4a182d9 100644
--- a/src/server.c
+++ b/src/server.c
@@ -727,7 +727,7 @@ srv_progout_hup(rpipe_t *rp, rpipe_server_t *srv, struct pollfd *pfd)
if (pfd->revents == POLLHUP && (pfd->events & POLLIN)) {
if (verbose)
error(0, 0, "%s: HUP", rpipe_server_str(srv));
- rpipe_server_disconnect(rp, srv);
+ progout->pollfd->events &= ~POLLIN;
}
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.