diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-09-11 09:05:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2021-09-11 09:05:51 +0000 |
commit | e377c664ea9bb2c23d00207e531c2f9ac3b142d7 (patch) | |
tree | e86c0c104eb82510479c297d2f80ffa275e8eb4f /usr.bin/gprof/printgprof.c | |
parent | 9befe9a7eaf8c1a474666b71592d918ce1a81407 (diff) |
Do not ignore SIGINT while waiting for input if editline(3) is not used.
Instead, in non-interactive mode, exit sftp(1), like for other serious errors.
As pointed out by dtucker@, when compiled without editline(3) support in
portable OpenSSH, the el == NULL branch is also used for interactive mode.
In that case, discard the input line and provide a fresh prompt to the user
just like in the case where editline(3) is used.
OK djm@
Diffstat (limited to 'usr.bin/gprof/printgprof.c')
0 files changed, 0 insertions, 0 deletions