diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-09-09 16:28:56 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-09-09 16:28:56 +0000 |
| commit | e5c171704e79ccb361bf6bbd51ecece19ec5df2f (patch) | |
| tree | ac8f36f612f308c1a84a1a7836ea6229c52f1ab1 | |
| parent | 660dadb1d95afe3d64493f43ff58c1a04c11e7a4 (diff) | |
| download | s6-networking-e5c171704e79ccb361bf6bbd51ecece19ec5df2f.tar.gz | |
Catch obscure busyloop in stls_run
| -rw-r--r-- | src/stls/stls_run.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stls/stls_run.c b/src/stls/stls_run.c index e56d123..ae9af51 100644 --- a/src/stls/stls_run.c +++ b/src/stls/stls_run.c @@ -178,6 +178,11 @@ void stls_run (struct tls *ctx, int const *fds, uint32_t options, unsigned int v fd_close(x[1].fd) ; x[1].fd = -1 ; } + else if (x[1].revents & IOPAUSE_EXCEPT) + { + errno = EIO ; + strerr_diefu1sys(111, "iopause for writing on local") ; + } } |
