https://bugzilla.novell.com/show_bug.cgi?id=652633
https://bugzilla.novell.com/show_bug.cgi?id=652633#c8
--- Comment #8 from Dr. Werner Fink 2011-02-16 09:55:41 UTC ---
AFAIK the bash will ignore the signal with trap on SIGHUP ... nevertheless
as sysvinit stops all processes (e.g. mingetty and login) before switching
to runlevel 0, 1, and 6 the shells on the consoles will be exit before the
system will shutdown or reboot (compare with /etc/inittab). This is shown
by sysvinit by the well known lines:
Sending processes the TERM signal
Sending processes the KILL signal
before executing the scripts for runlevel 0, 1, or 6. This holds true
for every runlevel switch, that is all process within the process group
1 not part of the next runlevel will be terminated and if this does not
help simply killed *before* entering the next runlevel.
I'm wondering why the signal USR2 is send to the bash, this will cause the
shell to exit without a trap.
You may try out if a simple trap on USR2 may help to save the history.
Btw: What does the command reboot do on systemd based systems? On sysvinit
the similar command tells the init process to switch from current level
to runlevel 6 (`reboot' == `shutdown -r now').
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.