commit 9a8d74891980ef72c6e4bb2f7d377738b3308d0f from: Stefan Sperling date: Fri Apr 26 13:03:14 2024 UTC revert part of previous commit; the parent process is not ephemeral pointed out by op@ commit - 1bd35332a599d65566a5fab8c0ff0eb6201812ff commit + 9a8d74891980ef72c6e4bb2f7d377738b3308d0f blob - 19d26f357f398508ab9a9cc21ebd763ddea506cd blob + 7847e850c8ce9f01d61ea2040c50c1ca94cc605b --- gotd/notify.c +++ gotd/notify.c @@ -454,9 +454,9 @@ notify_dispatch(int fd, short event, void *arg) if (event & EV_WRITE) { n = msgbuf_write(&ibuf->w); - if (n == -1 && errno != EAGAIN && errno != EPIPE) + if (n == -1 && errno != EAGAIN) fatal("msgbuf_write"); - if (n == 0 || (n == -1 && errno == EPIPE)) { + if (n == 0) { /* Connection closed. */ shut = 1; goto done;