Added new signal handler for SIGUSR2. When init receives SIGUSR2

it closes (and leaves closed) the named pipe /run/initctl. This
can be used to make sure init does not have any files open. However,
it also means we cannot switch run levels or bring down the system.
The pipe can be re-opened by sending init the SIGUSR1 signal.

Updated the man pages for initctl and init to include this information.
This commit is contained in:
Jesse Smith
2018-04-17 19:44:50 -03:00
parent f09da9cb55
commit 272f112c98
4 changed files with 43 additions and 4 deletions

View File

@@ -18,6 +18,11 @@ sysvinit (2.90) UNRELEASED; urgency=low
* Added check that named pipe is open before trying to close it
when something goes wrong or we receive SIGUSER1. Avoids potential
crash if we receive SIGUSR1 while pipe is not open.
* Added new signal handler for SIGUSR2. When init receives SIGUSR2
it closes (and leaves closed) the named pipe /run/initctl. This
can be used to make sure init does not have any files open. However,
it also means we cannot switch run levels or bring down the system.
The pipe can be re-opened by sending init the SIGUSR1 signal.
sysvinit (2.89) world; urgency=low