From 40125363cc4a49866289feb1e1f33dc3523b3451 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 4 Nov 2026 10:17:11 +0000 Subject: Don't check for IOPAUSE_EXCEPT explicitly wherever possible --- src/conn-tools/s6-ioconnect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/conn-tools/s6-ioconnect.c') diff --git a/src/conn-tools/s6-ioconnect.c b/src/conn-tools/s6-ioconnect.c index 0b78277..cb57e74 100644 --- a/src/conn-tools/s6-ioconnect.c +++ b/src/conn-tools/s6-ioconnect.c @@ -62,8 +62,8 @@ static void handle_signals (void) case 0 : return ; case SIGTERM : { - if (a[0][0].xindex < 5) x[a[0][0].xindex].revents |= IOPAUSE_EXCEPT ; - if (a[1][0].xindex < 5) x[a[1][0].xindex].revents |= IOPAUSE_EXCEPT ; + if (a[0][0].xindex < 5) x[a[0][0].xindex].revents |= POLLHUP ; + if (a[1][0].xindex < 5) x[a[1][0].xindex].revents |= POLLHUP ; break ; } default : @@ -203,7 +203,7 @@ int main (int argc, char const *const *argv) for (i = 0 ; i < 2 ; i++) if (a[i][0].xindex < 5) { - if (x[a[i][0].xindex].revents & (IOPAUSE_READ | IOPAUSE_EXCEPT)) + if (x[a[i][0].xindex].revents & IOPAUSE_READ) { if (!fillit(i)) { -- cgit v1.3.1