Debian bug report logs - #1297 , boring messages ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1297: nohup doesn't seem to work Reply-To: Raul Miller , debian-bugs@pixar.com Resent-From: Raul Miller Resent-To: debian-devel@pixar.com Resent-Date: Wed, 30 Aug 1995 23:03:02 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool for debian-bugs; Wed, 30 Aug 1995 23:03:02 GMT Received: with rfc822 via encapsulated-mail; Wed, 30 Aug 1995 22:49:16 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0snvvZ-0006FtC; Wed, 30 Aug 95 15:48 PDT Received: from rdm.legislate.com ([192.77.155.13]) by pixar.com with SMTP id AA26108 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 30 Aug 1995 15:48:00 -0700 Received: by rdm.legislate.com id (Debian /\oo/\ Smail3.1.29.1 #29.33); Wed, 30 Aug 95 18:47 EDT Message-Id: Date: Wed, 30 Aug 95 18:47 EDT From: Raul Miller To: debian-bugs@pixar.com Package: shellutils Version: 1.12 Revision: 3 I can reliably generate a HUP signal in a program run by nohup. The general approach is: rxvt -e sh -c 'nohup testprog & sleep 5' [The sleep is an arbitrary mechanism to allow the testprog to register its signal handlers before the HUP is delivered.] -- Raul ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Raul Miller Subject: Bug#1297: Acknowledgement (was: nohup doesn't seem to work) In-Reply-To: References: Thank you for the problem report you have sent regarding Debian GNU/Linux. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers' mailing list for their attention; they will reply in due course. If you wish to submit further information on your problem, please send it to debian-bugs@pixar.com, but please ensure that the Subject line of your message starts with "Bug#1297" or "Re: Bug#1297" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1297: nohup doesn't seem to work Reply-To: Bruce Perens , debian-bugs@pixar.com Resent-From: Bruce Perens Resent-To: debian-devel@pixar.com Resent-Date: Wed, 30 Aug 1995 23:48:01 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool for debian-bugs; Wed, 30 Aug 1995 23:48:01 GMT Received: with rfc822 via encapsulated-mail; Wed, 30 Aug 1995 23:41:54 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0snwkS-000EFQC; Wed, 30 Aug 95 16:40 PDT Received: from mongo.pixar.com by pixar.com with SMTP id AA00111 (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Wed, 30 Aug 1995 16:40:38 -0700 Received: by mongo.pixar.com (Smail3.1.28.1 #15) id m0snwkR-000BgVC; Wed, 30 Aug 95 16:40 PDT Message-Id: X-Mailer: exmh version 1.6.2 7/18/95 To: Raul Miller , debian-bugs@Pixar.com Cc: bruce@Pixar.com In-Reply-To: Your message of "Wed, 30 Aug 1995 18:47:00 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 Aug 1995 16:40:47 -0700 From: Bruce Perens You aren't registering a handler for SIGHUP, are you? That will invalidate the action of "nohup". Bruce -- -- Attention Ham Radio Operators: For information on "Linux for Hams", read -- the World Wide Web page http://www.hams.com/LinuxForHams, or e-mail to -- info@hams.com . ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Bruce Perens Subject: Bug#1297: Info received (was Bug#1297: nohup doesn't seem to work) In-Reply-To: References: Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developers to accompany the original report. If you wish to continue to submit further information on your problem, please do the same thing again: send it to debian-bugs@pixar.com, ensuring that the Subject line starts with "Bug#1297" or "Re: Bug#1297" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1297: nohup doesn't seem to work Reply-To: Raul Miller , debian-bugs@pixar.com Resent-From: Raul Miller Resent-To: debian-devel@pixar.com Resent-Date: Fri, 01 Sep 1995 23:18:01 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool for debian-bugs; Fri, 01 Sep 1995 23:18:01 GMT Received: with rfc822 via encapsulated-mail; Fri, 01 Sep 1995 23:04:48 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sof7f-000EAvC; Fri, 1 Sep 95 16:03 PDT Received: from magenta.com by pixar.com with SMTP id AA19134 (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Fri, 1 Sep 1995 16:03:30 -0700 Received: (moth@localhost) by magenta.com (8.6.12/8.6.4) id SAA00237; Fri, 1 Sep 1995 18:57:36 -0400 Date: Fri, 1 Sep 1995 18:57:36 -0400 Message-Id: <199509012257.SAA00237@magenta.com> From: Raul Miller To: bruce@Pixar.com Cc: debian-bugs@Pixar.com In-Reply-To: (message from Bruce Perens on Wed, 30 Aug 1995 16:40:47 -0700) You aren't registering a handler for SIGHUP, are you? That will invalidate the action of "nohup". That makes a certain amount of sense. Hmm, let me check the code for nohup... Ok, you're right in that nohup installs a signal handler then execs the desired program. However, this is a problem under linux. According to the man page: Unlike BSD systems, signals under Linux are reset to their default behavior when raised. In the case I reported, I'd guess that more than one SIGHUP is being delivered to the program allegedly protected by nohup. Basically, this means that it's difficult to come up with a system which pops up a temporary window to prompt for a password to use in running some other program. -- Raul ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Raul Miller Subject: Bug#1297: Info received (was Bug#1297: nohup doesn't seem to work) In-Reply-To: <199509012257.SAA00237@magenta.com> References: <199509012257.SAA00237@magenta.com> Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developers to accompany the original report. If you wish to continue to submit further information on your problem, please do the same thing again: send it to debian-bugs@pixar.com, ensuring that the Subject line starts with "Bug#1297" or "Re: Bug#1297" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1297: nohup doesn't seem to work Reply-To: Bruce Perens , debian-bugs@pixar.com Resent-From: Bruce Perens Resent-To: debian-devel@pixar.com Resent-Date: Sat, 02 Sep 1995 07:33:02 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool for debian-bugs; Sat, 02 Sep 1995 07:33:02 GMT Received: with rfc822 via encapsulated-mail; Sat, 02 Sep 1995 07:20:30 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0solzU-000EqMC; Fri, 1 Sep 95 23:23 PDT Received: from mongo.pixar.com by pixar.com with SMTP id AA10520 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Fri, 1 Sep 1995 23:23:33 -0700 Received: by mongo.pixar.com (Smail3.1.28.1 #15) id m0solyG-000EppC; Fri, 1 Sep 95 23:22 PDT Message-Id: To: Raul Miller , debian-bugs@Pixar.com Cc: bruce@Pixar.com In-Reply-To: Your message of "Fri, 01 Sep 1995 18:57:36 PDT." <199509012257.SAA00237@magenta.com> Date: Fri, 01 Sep 1995 23:22:27 -0700 From: Bruce Perens From: Raul Miller > Unlike BSD systems, signals under Linux are reset to their > default behavior when raised. I think this is a red herring. The signal won't get raised if the handler is set to SIG_IGN. Moreover, when I run the simple test below, nohup works correctly. I still suspect something else is getting to the SIGHUP handler in the test you are running. Thanks Bruce Script started on Fri Sep 1 23:17:33 1995 > bash bash$ sleep 100 & [1] 1268 bash$ kill -HUP 1268 bash$ [1]+ Hangup sleep 100 bash$ nohup sleep 100 & [1] 1269 bash$ nohup: appending output to `nohup.out' ps PID TTY STAT TIME COMMAND 135 v01 S 0:01 -tcsh 136 v02 S 0:01 -tcsh 1201 v02 T 0:00 ftp mongo 1259 v02 S 0:00 script 1260 v02 S 0:00 script 1261 pp2 S 0:00 -h -i 1265 pp2 S 0:00 bash 1269 pp2 S N 0:00 sleep 100 1274 pp2 R 0:00 ps bash$ kill -HUP 1269 bash$ kill -HUP 1269 bash$ kill -HUP 1269 bash$ ps PID TTY STAT TIME COMMAND 135 v01 S 0:01 -tcsh 136 v02 S 0:01 -tcsh 1201 v02 T 0:00 ftp mongo 1259 v02 S 0:00 script 1260 v02 S 0:00 script 1261 pp2 S 0:00 -h -i 1265 pp2 S 0:00 bash 1269 pp2 S N 0:00 sleep 100 1275 pp2 R 0:00 ps bash$ exit exit > exit exit Script done on Fri Sep 1 23:18:25 1995 ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Bruce Perens Subject: Bug#1297: Info received (was Bug#1297: nohup doesn't seem to work) In-Reply-To: References: Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developers to accompany the original report. If you wish to continue to submit further information on your problem, please do the same thing again: send it to debian-bugs@pixar.com, ensuring that the Subject line starts with "Bug#1297" or "Re: Bug#1297" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1297: nohup doesn't seem to work Reply-To: Raul Miller , debian-bugs@pixar.com Resent-From: Raul Miller Resent-To: debian-devel@pixar.com Resent-Date: Sun, 03 Sep 1995 04:03:02 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool for debian-bugs; Sun, 03 Sep 1995 04:03:02 GMT Received: with rfc822 via encapsulated-mail; Sun, 03 Sep 1995 04:01:24 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sp6EG-000Bz5C; Sat, 2 Sep 95 21:00 PDT Received: from magenta.com by pixar.com with SMTP id AA00596 (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Sat, 2 Sep 1995 21:00:08 -0700 Received: (moth@localhost) by magenta.com (8.6.12/8.6.4) id XAA20235; Sat, 2 Sep 1995 23:55:22 -0400 Date: Sat, 2 Sep 1995 23:55:22 -0400 Message-Id: <199509030355.XAA20235@magenta.com> From: Raul Miller To: bruce@Pixar.com Cc: debian-bugs@Pixar.com In-Reply-To: (message from Bruce Perens on Fri, 01 Sep 1995 23:22:27 -0700) I think this is a red herring. The signal won't get raised if the handler is set to SIG_IGN. Moreover, when I run the simple test below, nohup works correctly. I still suspect something else is getting to the SIGHUP handler in the test you are running. [test deleted.] Ok, perhaps I've completely misdiagnosed what's going on. Here's my situation: I'm trying to run xdos (from dosemu) as root. [suid root doesn't work for some features.] So, I need to respond to the su prompt before I am able to fire up xdos. However, using the "obvious method" of firing up an rxvt (or, if I remember right, an xterm) to run the su has the problem that when the rxvt (or xterm) exits it kills the dos window. nohup won't solve this problem. >From earlier attempts at getting telnet to do rsh like things under X, and from some tests I did before submitting this bug report, I believe that this phenomena is independent of the program I'm running from inside su. It's also independent of su -- sh -c exhibits the same symptoms as su -c. Unfortunately, I'm not going to have access to the machine that has X installed till tuesday, so I can't run any further tests at this time. -- Raul ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Raul Miller Subject: Bug#1297: Info received (was Bug#1297: nohup doesn't seem to work) In-Reply-To: <199509030355.XAA20235@magenta.com> References: <199509030355.XAA20235@magenta.com> Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developers to accompany the original report. If you wish to continue to submit further information on your problem, please do the same thing again: send it to debian-bugs@pixar.com, ensuring that the Subject line starts with "Bug#1297" or "Re: Bug#1297" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Message sent to debian-devel@pixar.com: Subject: Bug#1297: nohup doesn't seem to work Reply-To: Bruce Perens , debian-bugs@pixar.com Resent-From: Bruce Perens Resent-To: debian-devel@pixar.com Resent-Date: Sun, 03 Sep 1995 06:03:02 GMT Resent-Message-ID: Resent-Sender: iwj10@cus.cam.ac.uk X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool for debian-bugs; Sun, 03 Sep 1995 06:03:02 GMT Received: with rfc822 via encapsulated-mail; Sun, 03 Sep 1995 05:54:47 GMT Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0sp800-000EuGC; Sat, 2 Sep 95 22:53 PDT Received: from mongo.pixar.com by pixar.com with SMTP id AA05183 (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Sat, 2 Sep 1995 22:53:32 -0700 Received: by mongo.pixar.com (Smail3.1.28.1 #15) id m0sp7zv-000Et0C; Sat, 2 Sep 95 22:53 PDT Message-Id: To: Raul Miller Cc: bruce@Pixar.com, debian-bugs@Pixar.com In-Reply-To: Your message of "Sat, 02 Sep 1995 23:55:22 PDT." <199509030355.XAA20235@magenta.com> Date: Sat, 02 Sep 1995 22:53:39 -0700 From: Bruce Perens I'm going to close this bug, as it doesn't seem to be a nohup problem. You might play around with "stty -hup", though I don't know if that will work. Bruce ----------------------------------------------------------------------- Message sent: From: iwj10@thor.cam.ac.uk (Ian Jackson) To: Bruce Perens Subject: Bug#1297: Info received (was Bug#1297: nohup doesn't seem to work) In-Reply-To: References: Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developers to accompany the original report. If you wish to continue to submit further information on your problem, please do the same thing again: send it to debian-bugs@pixar.com, ensuring that the Subject line starts with "Bug#1297" or "Re: Bug#1297" so that we can identify it as relating to the same problem. Please do not reply to the address at the top of this message, unless you wish to report a problem with the bug-tracking system. Ian Jackson (maintainer, debian-bugs) ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov