mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
[Mirror] Some kind of OS: git://git.9front.org/plan9front/plan9front
d8cf26110d
Before, we would just leak all the "Conn" structures. fshangup() could cause problems as it just forcefully closes the file descriptors, not considering someone else going to write them afterwards. Instead, we add a "hangup" flag to Conn, which readers and writers check before attempting i/o. And we only close the file-descriptors when the last reader/writer drops the connection. (Make it ref-counted). For faster teardown, also preserve the "ctl" file descriptor from listen() amd use it to kill the connection quickly when fshangup() is called. |
||
---|---|---|
386 | ||
68000 | ||
68020 | ||
acme | ||
adm/timezone | ||
amd64 | ||
arm | ||
arm64 | ||
lib | ||
mips | ||
power | ||
power64 | ||
rc | ||
sparc | ||
sparc64 | ||
spim | ||
sys |