Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2001 11:35:25 +0200
From:      Guido van Rooij <guido@FreeBSD.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/login login.c
Message-ID:  <20010522113525.A14158@gvr.gvr.org>
In-Reply-To: <20010522114153.B32742@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, May 22, 2001 at 11:41:53AM %2B0400
References:  <200105212020.f4LKK0o39061@freefall.freebsd.org> <20010522114153.B32742@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 22, 2001 at 11:41:53AM +0400, Andrey A. Chernov wrote:
> On Mon, May 21, 2001 at 13:20:00 -0700, Guido van Rooij wrote:
> > guido       2001/05/21 13:20:00 PDT
> > 
> >   Modified files:
> >     usr.bin/login        login.c 
> >   Log:
> >   Disable SIGHUP while getting the login name.
> 
> Why?
> And what happens now if signal comes (line break f.e.) at this moment,
> hang forever?

No. The code will move on untill, in getloginname(), getchar() will return
eof.
Then (at least when username is set), a log record will be created
specifying a failed login occurred.
When SIGHUP is not disabled, this log record will never be created unless
the person (program?) that tried to log on is kindly enough to end
his sessions with a ctrl-d.

-Guido

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010522113525.A14158>