9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] minor fix for rtstats
@ 2003-03-13 21:27 Skip Tavakkolian
  0 siblings, 0 replies; only message in thread
From: Skip Tavakkolian @ 2003-03-13 21:27 UTC (permalink / raw)
  To: 9fans

Running 'rtstats -b' and quitting by pressing 'q' causes
a crash.

diff /n/dump/2003/0313/sys/src/cmd/rtstats/rtstats.c /sys/src/cmd/rtstats/rtstats.c
78c78
< 	if (strncmp(missstr, s, strlen(missstr)) == 0)
---
> 	if (s && (strncmp(missstr, s, strlen(missstr)) == 0))
82c82
< 	if (fprint(schedfd, "remove") < 0)
---
> 	if (!besteffort && fprint(schedfd, "remove") < 0)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-13 21:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 21:27 [9fans] minor fix for rtstats Skip Tavakkolian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).