plan9port/src/cmd/fossil
Fazlul Shahriar 2ca8ede24a 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).
2022-07-26 12:11:38 -04:00
..
9.h fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
9auth.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
9dir.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
9excl.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
9fid.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
9fsys.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
9lstn.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
9p.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
9ping.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
9proc.c fossil: fix EOF detection when reading 9P message 2022-07-26 12:11:38 -04:00
9srv.c fossil: required p9p changes 2013-09-26 20:12:45 +02:00
9user.c fossil: required p9p changes 2013-09-26 20:12:45 +02:00
archive.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
bwatch.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
cache.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
Ccli.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
Ccmd.c fossil: required p9p changes 2013-09-26 20:12:45 +02:00
Ccons.c fossil: required p9p changes 2013-09-26 20:12:45 +02:00
check.c fossil: fix remaining warnings 2013-10-23 22:10:31 +02:00
Clog.c fossil: import from plan 9 2013-09-23 23:00:39 +02:00
conf.rc fossil: import conf.rc 2013-09-26 22:31:57 +02:00
dat.h fossil: required p9p changes 2013-09-26 20:12:45 +02:00
disk.c fix clang 3.4 warnings and ignore uninteresting ones 2014-10-21 14:22:12 +02:00
dump.c fossil: import from plan 9 2013-09-23 23:00:39 +02:00
epoch.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
error.c fossil: import from plan 9 2013-09-23 23:00:39 +02:00
error.h fossil: import from plan 9 2013-09-23 23:00:39 +02:00
file.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
flchk.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
flfmt9660.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
flfmt9660.h fossil: import from plan 9 2013-09-23 23:00:39 +02:00
flfmt.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
fns.h fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
fossil.c libthread: add threadmaybackground 2020-12-30 00:12:14 -05:00
fs.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
fs.h fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
last.c fossil: import from plan 9 2013-09-23 23:00:39 +02:00
mkfile all: fix or silence all INSTALL warnings on macOS 2017-01-06 21:37:31 +00:00
nobwatch.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
pack.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
periodic.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
source.c fossil: move from liboventi to libthread and libventi 2013-09-23 23:16:25 +02:00
srcload.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
stdinc.h fossil: required p9p changes 2013-09-26 20:12:45 +02:00
trunc.c fossil: import from plan 9 2013-09-23 23:00:39 +02:00
vac.c fossil: fix remaining warnings 2013-10-23 22:10:31 +02:00
vac.h fossil: import from plan 9 2013-09-23 23:00:39 +02:00
view.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
walk.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00