[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Login and SIGHUP



"Todd C. Miller" <Todd.Miller@courtesan.com> writes:

> In message <m23d8x19cv.fsf@boreas.yi.org.>
> 	so spake John Fremlin (vii):
> 
> > Why does src/usr.bin/login/login.c record a login failure to syslog on
> > SIGHUP? It does not on SIGALRM.
> 
> Because if you, e.g. telnet to a machine and close the remote end
> login(1) gets a SIGHUP.  Therefore it needs to record a login
> failure just as if the user had entered ^D.

But if you telnet to the machine then cut the network connection or
just stop sending packets it will just timeout, yes? Why is that
failure any less failureful than hangup?

-- 

	http://ape.n3.net