Hello,

since version 8.3 Readline crashes in PicoLisp on some signals (SIGINT,
SIGTSTP and SIGTERM).

Does PicoLisp do something wrong? In the above three cases, it does

1. When receiving a signal:

   if (rl_readline_state & RL_STATE_INITIALIZED) {
      rl_save_prompt();
      rl_free_line_state();
      rl_cleanup_after_signal();
   }

2. After handling the signal:

   if (rl_readline_state & RL_STATE_SIGHANDLER) {
      rl_reset_after_signal();
      rl_restore_prompt();
   }

Is this the correct way?

☺/ A!ex
— A. Burger
-- 
   Alexander Burger
   Software Lab. / 7fach GmbH
   Bahnhofstr. 24a, D-86462 Langweid
   [email protected]
   +49 179 6731887
   @abu:7fach.de

  • Signals crash Re... Alexander Burger via Bug reports for GNU readline library

Reply via email to