NetBSD-Bugs archive

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

Re: bin/57656: /sbin/shutdown prints message twice



The following reply was made to PR bin/57656; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/57656: /sbin/shutdown prints message twice
Date: Fri, 13 Oct 2023 23:02:13 +0000 (UTC)

 On Fri, 13 Oct 2023, ben@pocket.services wrote:
 
 > /sbin/shutdown has been changed recently so that it (by error, I suppose)
 > prints its message twice to the terminal:
 >
 > bjjl@lion[pts/0]<~>% sudo shutdown -Dr now
 > Shutdown NOW!
 >
 > *** FINAL System shutdown message from bjjl%lion.mx.plus@localhost ***
 > System going down IMMEDIATELY
 >
 >
 >
 > *** FINAL System shutdown message from bjjl%lion.mx.plus@localhost ***
 > System going down IMMEDIATELY
 >
 >
 >
 > System shutdown time has arrived
 >
 > About to run shutdown hooks...
 >
 
 This is actually due to a change in sudo. See this reply:
 
 https://mail-index.netbsd.org/current-users/2023/10/04/msg044487.html
 
 An easy reproducer is:
 
 $ sudo sh -c 'echo hello | wall'
 
 You would see that double message only on the _current_ terminal because
 sudo creates an additional one. All other terminals will see only one.
 
 -RVP
 


Home | Main Index | Thread Index | Old Index