9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acme dumping bug
@ 2001-06-13 18:28 rog
  0 siblings, 0 replies; only message in thread
From: rog @ 2001-06-13 18:28 UTC (permalink / raw)
  To: 9fans

i've just made a small change that fixes acme's extremely annoying
habit of truncating its dump file when its window is deleted. it's
probably wrong, but at least it means that when i try to right-button
click on a window's border and delete the acme window instead that i
don't lose all my current work...

the change is in /sys/src/cmd/acme/acme.c:/^shutdown1
change:
				threadexitsall(msg);
to:
				threadexits(msg);

this stops one of the other processes in acme's notegroup from killing
the dumping process halfway through its dump.

it does mean that you can no longer rely on killing one acme process to
kill them all, but i think the trade-off's worth it.

BTW it should probably be documented that you can't use qlock() inside
a note handler (or is this just a bug?)

  cheers,
    rog.



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

only message in thread, other threads:[~2001-06-13 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-13 18:28 [9fans] acme dumping bug rog

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).