Re: [PATCH] agetty: Reprompt and reprint /etc/issue if we receive SIGUSR1

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

 



On Mon, Jul 07, 2014 at 09:31:24AM +0200, Stef Walter wrote:
> Several of the /etc/issue escape codes such as \4 and \S depend on
> variable data which can change after the agetty prompt is displayed.
> This can cause stale data to be displayed when a user looks at a VT,
> especially in cases of DHCP racing with system start up.
> 
> This commit allows agetty to react a SIGUSR1 signal by reprinting
> its prompt including the reprocessing of /etc/issue.
> 
> We never want this to occur once the user has started typing a
> user name. So we detect when the user starts typing, after which
> no further reprompting occurs even if SIGUSR1 is received.

 Good idea, interesting implementation, but it's too late for v2.25.
 I'm going to apply the patch to the git tree after v2.25 release.

 Thanks.
    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux