From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3) with ESMTP id EAA01490 for ; Sun, 2 Jun 1996 04:00:30 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA26280; Sat, 1 Jun 1996 13:53:44 -0400 (EDT) Resent-Date: Sat, 1 Jun 1996 13:53:44 -0400 (EDT) Sender: hniksic@public.srce.hr To: zsh-workers@math.gatech.edu Subject: "You have running jobs" warning From: Hrvoje Niksic Date: 01 Jun 1996 19:52:37 +0200 Message-ID: X-Mailer: Gnus v5.2.4/XEmacs 19.13 Resent-Message-ID: <"JXXHB3.0.YQ6.dE8in"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1243 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu When I set NO_HUP, I would like the "you have running jobs" warning to disappear when leaving zsh, since the option should make it look like other shells in that respect (e.g. bash prints no warnings about background running jobs). Thus, if nohup is unset, the warning should be printed and the shell should require pressing C-d twice to exit, HUP-ing the job before exiting. However, if nohup is set, there should be no warning about running background jobs, and only one C-d should be sufficient to exit. This little patch does this. Could you please include it to the distribution, since the modified behaviour strikes me as much more logical. *** jobs.c.orig Sat Jun 1 18:31:07 1996 --- jobs.c Sat Jun 1 19:42:54 1996 *************** *** 846,855 **** #else zerr("you have stopped jobs.", NULL, 0); #endif ! } else zerr("you have running jobs.", NULL, 0); ! stopmsg = 1; } } --- 846,857 ---- #else zerr("you have stopped jobs.", NULL, 0); #endif + stopmsg = 1; ! } else if (!isset(NOHUP)) { zerr("you have running jobs.", NULL, 0); ! stopmsg = 1; ! } } } -- hniksic@srce.hr | Student of electrical engineering hniksic@fly.cc.fer.hr | University of Zagreb, Croatia ------------------------------------------------------------------ Signature strajka!