| | @@ -1008,7 +1008,10 @@ |
| 1008 | 1008 | (EPIPE), so that a program learns its server has gone and can end as |
| 1009 | 1009 | it wants. `readyOf` waits on several file |
| 1010 | 1010 | 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). |
| 1012 | 1015 | |
| 1013 | 1016 | `openPty` makes a pseudo-terminal, a terminal that a program, a |
| 1014 | 1017 | terminal emulator, plays the screen and the keyboard of: what it |