CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2021/08/10 08:28:10
Modified files: lib/libedit : read.c Log message: While el_gets(3) and el_wgets(3) wait for user input, no longer ignore the first signal received. No change for SIGCONT and SIGWINCH, but for other signals, return to the application program and let that program decide what to do, typically either exit or provide a fresh prompt. Bug originally reported by deraadt@ regarding behaviour of Ctrl-C in sftp(1). With this patch, sftp(1) no longer ignores Ctrl-C but exists, and the same applies to a few other programs. Some others that used to ignore Ctrl-C now provide a fresh prompt instead. For several, behaviour is unchanged. At this point, i'm not aware of a serious regression in any program. OK deraadt@ martijn@ and no objection from millert@. Patch also tested by claudio@ with bgplgsh(8).