Your message dated Tue, 20 Sep 2022 20:25:38 +0200
with message-id <[email protected]>
and subject line Re: Bug#41321: ^Z in xnethack is dangerous
has caused the Debian Bug report #41321,
regarding ^Z in xnethack is dangerous
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
41321: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=41321
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nethack
Version: 3.2.2-16

Pressing ^Z in xnethack, when it's being run from the window manager's
menu, can cause the window manager to stop.  Which is rather difficult
to fix if you don't know what you're going.  (If I were less
knowledgable, I'd probably have thought that the system had hung.)  A
SIGTSTP causes the entire process group to suspend, not just the
foremost process (this is presumably so that you can suspend,
e.g. your editor *and* mailer, or the like.)

Actually, there's little or no reason to even support ^Z in xnethack.
It makes sense for the terminal version, but not for the X version.
Something more along the lines of what emacs does (suspends in a
terminal, iconizes in X) would make more sense.

The worst part is that ^Z is right next to ^A, which is a very useful
command in nethack, so this is really not difficult to do by
accident.  (I'm only surprised I didn't discover this years ago.)

I've looked over the code just a little, and I can say that the
problem is basically in sys/share/ioctl.c, the last function,
dosuspend(), which *unconditionally* sends SIGTSTP.  Unfortunately, I
don't have a quick patch as yet, but I might be able to come up with
one if pressed.  But I thought you might have some contact with the NH
dev team, who are probably more qualified than I to provide a
reasonable, portable solution.
-- 
Chris Waters   [email protected] | I have a truly elegant proof of the
      or    [email protected] | above, but it is too long to fit into
http://www.dsp.net/xtifr     | this .signature file.

--- End Message ---
--- Begin Message ---
Hi, 

it seems that upstream has changed something, at least when I press ^Z, I
get "suspend not available."

Closing therefore, please reopen if I failed to reproduce appropiatly.

--- End Message ---

Reply via email to