The reason the interrupt code did not work for me, is that
by default using signal will make function calls restartable, at least on my default RH5.1, when read() was interrupted it did not return EINTR inside ml_getc(). * mail.c (main): Use sigaction if available to set SIGPIPE. * mailline.c (sig_handler): Reset "lines" variable. Recall signal() if we did not have sigaction. (ml_readline_init): Use sigaction to set SIGWINCH and SIGINT.
Showing
3 changed files
with
30 additions
and
4 deletions
-
Please register or sign in to post a comment