[Bug 1590] ^C is not supported in sftp

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jan 13 14:20:35 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1590

Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au

--- Comment #1 from Darren Tucker <dtucker at zip.com.au> 2010-01-13 14:20:34 EST ---
The reason this happens is this piece of code from sftp.c:

   /*
    * The underlying ssh is in the same process group, so we must
    * ignore SIGINT if we want to gracefully abort commands,
    * otherwise the signal will make it to the ssh process and
    * kill it too
    */
   signal(SIGINT, SIG_IGN);
   execvp(path, args);

so the signals are blocked before ssh(1) starts.  If we remove that, ^C
will kill the ssh any time someone tries to interrupt a command.

The only thing I can think of is to tell ssh to allow interrupts until
after authentication and then ignore them, which would require another
flag or option.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list