diff options
| author | Fazlul Shahriar <fshahriar@gmail.com> | 2020-10-09 16:36:34 -0400 |
|---|---|---|
| committer | Dan Cross <crossd@gmail.com> | 2022-07-26 12:11:38 -0400 |
| commit | 2ca8ede24ada82f22a77ab172a0a8214f623dc94 (patch) | |
| tree | dfc05c0d33259e36ed9cd111a1d85120e98c99f0 /src/libdraw/string.c | |
| parent | 23420c24937a8899bf1cfb900b9a5155b6f924ae (diff) | |
| download | plan9port-2ca8ede24ada82f22a77ab172a0a8214f623dc94.tar.gz plan9port-2ca8ede24ada82f22a77ab172a0a8214f623dc94.zip | |
fossil: fix EOF detection when reading 9P message
When the 9P connection is closed, reads on the connection will keep
returning 0. So, fossil ends up looping forever, trying to read a 9P
message, consuming 100% CPU. The fix interprets 0 bytes read as EOF.
Reproduce by killing the 9pserve process serving the fossil service, or
by listening on tcp and using 9p(1).
Diffstat (limited to 'src/libdraw/string.c')
0 files changed, 0 insertions, 0 deletions
