From owner-freebsd-bugs Sun Apr 6 00:40:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA02177 for bugs-outgoing; Sun, 6 Apr 1997 00:40:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA02167; Sun, 6 Apr 1997 00:40:05 -0800 (PST) Date: Sun, 6 Apr 1997 00:40:05 -0800 (PST) Message-Id: <199704060840.AAA02167@freefall.freebsd.org> To: freebsd-bugs Cc: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: bin/3202: shutdown(8) don't work if started from an X Window Manager menu Reply-To: j@uriah.heep.sax.de (J Wunsch) Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/3202; it has been noted by GNATS. From: j@uriah.heep.sax.de (J Wunsch) To: dima@tejblum.dnttm.rssi.ru Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/3202: shutdown(8) don't work if started from an X Window Manager menu Date: Sat, 5 Apr 1997 16:42:23 +0200 As Dmitrij Tejblum wrote: > >Fix: > > May be this is not the best way, but it is simple. I don't think it's a good fix. If at all, shutdown itself should prevent the signal delivery to reboot(8). After all, shutdown is the program that goes into background, while reboot is a plain foreground program (which i expect to be able to abort using ^C if i hit it quickly after typing the command). Note that you should also get away with something like ... exec "trap 1 2 15 ''; shutdown -h now" in your window manager menu. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)