From 2d0814f33709179dec0c02c915314ebf471f0caa Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Sun, 11 Oct 2026 11:36:34 +0100 Subject: [PATCH] The report: the limits of connect and readyOf What the code already does, written down: readyOf counts an end or a failure as ready and looks at 64 fds at most; connect takes a path of 107 bytes at most. --- diff --git a/doc/raz.md b/doc/raz.md index 28c155e..66cc312 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -1008,7 +1008,10 @@ (EPIPE), so that a program learns its server has gone and can end as it wants. `readyOf` waits on several file descriptors at once, as a program does that listens to a server and a -terminal both. +terminal both; a descriptor at its end, or failed, counts as ready, +since a read of it won't wait. It looks at the first 64 of `fds`, and +`connect` takes a path of at most 107 bytes, as `struct sockaddr_un` +holds; a longer one is -36 (ENAMETOOLONG). `openPty` makes a pseudo-terminal, a terminal that a program, a terminal emulator, plays the screen and the keyboard of: what it