On Thu, Jun 15, 2006 at 01:51:01PM -0600, Jason Aeschilman wrote: > Again, I'm just curious how they make this work. I understand your > point of view, that you should lose history since you don't explicitly > exit the terminal session, but at least some distros have changed it so > history is saved on reboot/shutdown, which is the behavior I desire.
When your system shuts down, sendsigs script sends first the TERM signal to all processes (that are not in its own process group). Bash blocks this signal (does nothing when it receives it). Then sendsigs sends the KILL signal and all bash instances die immediately, without saving any history information. The easiest way to fix the issue is to send SIGHUP to all Bash processes at shut down. This forces them to write history out and exit. Alternatively you can patch bash to not block SIGTERM, but this may have some nasty effects. -- Tapio -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page