*BSD News Article 48597


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!newsroom.utas.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!gatech!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Rlogin on connection drop
Date: 14 Aug 1995 10:18:32 +0200
Organization: Private U**x site, Dresden.
Lines: 21
Message-ID: <40n0so$im9@bonnie.tcd-dresden.de>
References: <40anm2$ms4@news.bu.edu> <40cvma$4cu@bonnie.tcd-dresden.de> <40efa8$ldt@news.bu.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Mikhail Teterin <mi@csb.bu.edu> wrote:

>Before calling me a moron, wait for an answer (or did I show
>this characteristic of mine before?). rlogin leaves with a default
>`kill' or with `kill -1', but leaves csh in the unusable state --
>gives a prompt, that's it. csh can be killed with -1 or -9, that
>does not show any obvious difference -- getty comes up.

csh will e.g. save its history file on -HUP, but obviously not on
-KILL.  The correct way is to kill -HUP the entire process group, btw.
(I guess HUP'ing the csh would also suffice, since the rlogin will
exit once its shell has been exiting.)

The general use of ``kill -9'' (and its propagation e.g. in Usenet) is
one of the biggest sins.  It's just firing the big gun, instead of
asking ``Hey you, get out of my way!''.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)