Re: unsafe signal handler

2005-07-18 Thread Chet Ramey
Tim Waugh wrote: > The signal handler termination_unwind_protect() can call > maybe_save_shell_history() -> append_history() -> history_do_write() > -> history_filename() -> xmalloc() -> malloc() > > and malloc() is not safe to call from a signal handler. This affects > bash-2.05b as well as bash

unsafe signal handler

2005-07-18 Thread Tim Waugh
The signal handler termination_unwind_protect() can call maybe_save_shell_history() -> append_history() -> history_do_write() -> history_filename() -> xmalloc() -> malloc() and malloc() is not safe to call from a signal handler. This affects bash-2.05b as well as bash-3.0. Tim. */ ref 163235 pg