raz / commit 2d0814f3

commit
2d0814f33709179dec0c02c915314ebf471f0caa
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
95cc648a
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.

patch · log

1 file changed, +4 -1

doc/raz.md (history) modified +4 -1

@@ -1008,7 +1008,10 @@
10081008 (EPIPE), so that a program learns its server has gone and can end as
10091009 it wants. `readyOf` waits on several file
10101010 descriptors at once, as a program does that listens to a server and a
1011-terminal both.
1011+terminal both; a descriptor at its end, or failed, counts as ready,
1012+since a read of it won't wait. It looks at the first 64 of `fds`, and
1013+`connect` takes a path of at most 107 bytes, as `struct sockaddr_un`
1014+holds; a longer one is -36 (ENAMETOOLONG).
10121015
10131016 `openPty` makes a pseudo-terminal, a terminal that a program, a
10141017 terminal emulator, plays the screen and the keyboard of: what it