[PATCH s6] s6-notify-fd-from-socket: poll the right fd

From: Alyssa Ross <hi_at_alyssa.is>
Date: Fri, 10 Jul 2026 18:53:11 +0200

This was nonsensically waiting for the write end of the pipe to become
readable, which obviously never happened. Presumably it instead
intended to wait for the socket, which it reads from, to become
readable, and indeed with this change it no longer gets permanently
stuck.
---
 src/supervision/s6-notify-fd-from-socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/supervision/s6-notify-fd-from-socket.c b/src/supervision/s6-notify-fd-from-socket.c
index b5a6233..834955d 100644
--- a/src/supervision/s6-notify-fd-from-socket.c
+++ b/src/supervision/s6-notify-fd-from-socket.c
_at__at_ -53,7 +53,7 _at__at_ static void bindit (int sock, char *name)
 static inline int run_child (int sock, int fd, unsigned int timeout)
 {
   char buf[8192] ;
-  iopause_fd x = { .fd = fd, .events = IOPAUSE_READ } ;
+  iopause_fd x = { .fd = sock, .events = IOPAUSE_READ } ;
   int found = 0 ;
   tain deadline = TAIN_INFINITE_RELATIVE ;
   tain_now_g() ;
base-commit: d73e65752c7f3785b09c26bb084b589be4e142af
-- 
2.54.0
Received on Fri Jul 10 2026 - 18:53:11 CEST

This archive was generated by hypermail 2.4.0 : Fri Jul 10 2026 - 18:54:23 CEST