🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #570

Re^2: Checking for new mail (and killing bkgnd process on logout?)

#570
From: Jan B. Andersen
Date: Wed, 30 Aug 1989 08:57
32 lines
1830 bytes
seth@ctr.columbia.edu (Seth Robertson) writes:

>In article <128@isgtec.UUCP> bmw@isgtec.UUCP (Bruce Walker) writes:
[ in BSD systems ]
>>the process
>>disconnects from your tty and continues running ...

This has nothing to do with BSD vs Sys V. I ran into the same
problem, but TFM manual says it all:

     CSH(1B)

     ...

     SIGNAL HANDLING
	  The shell normally ignores quit signals.  Processes running
	  in background (by &) are immune to signals generated from
	  the keyboard, including hangups.  Other signals have the
	  values which the shell inherited from its parent.  The
	  shells handling of interrupts and terminate signals in shell
	  scripts can be controlled by onintr. Login shells catch the
	  terminate signal; otherwise this signal is passed on to
	  children from the state in the shell parent.	In no case are
	  interrupts allowed when a login shell is reading the file
	  .logout.

Note the line: ..., including hangups. In the Bourne shell, proceses
running in the background, will not catch SIGHUP and gets terminated
automatically when you log out.

Personally I find this behavior a bit odd. Why not use nohup(1)
instead?
Technical Details
Message-ID: <92@harald.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!sunic!dkuug!harald.ruc.dk!jba
References: <105@csnz.co.nz> <1989Aug26.200813.15629@twwells.com> <64@calcite.UUCP> <128@isgtec.UUCP> <1989Aug30.053137.2047@ctr.columbia.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!sunic!dkuug!harald.ruc.dk!jba
From: jba@harald.ruc.dk (Jan B. Andersen)
Newsgroups: comp.mail.misc,comp.unix.xenix,comp.unix.wizards
Subject: Re^2: Checking for new mail (and killing bkgnd process on logout?)
Message-ID: <92@harald.UUCP>
Date: 30 Aug 89 08:57:07 GMT
References: <105@csnz.co.nz> <1989Aug26.200813.15629@twwells.com> <64@calcite.UUCP> <128@isgtec.UUCP> <1989Aug30.053137.2047@ctr.columbia.edu>
Followup-To: comp.mail.misc
Organization: RUC - Roskilde University Center, Denmark
Lines: 32