Bug 1859 - sshd does not forward break request to process as SIGINT
Summary: sshd does not forward break request to process as SIGINT
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 5.2p1
Hardware: All All
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_6_0
  Show dependency treegraph
 
Reported: 2011-02-17 05:01 AEDT by David Choweller
Modified: 2015-08-11 23:05 AEST (History)
1 user (show)

See Also:


Attachments
send break to correct fd (566 bytes, patch)
2011-04-13 15:01 AEST, Damien Miller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Choweller 2011-02-17 05:01:17 AEDT
Older implementations of sshd forwarded a break request to the connected process as a SIGINT.  This was fixed (see bug 888), but seems to have re-appeared again.

We see the following in the syslog:


Feb 15 12:51:24 jerom sshd[14392]: debug1: server_input_channel_req: channel 0 request break reply 0
Feb 15 12:51:24 jerom sshd[14392]: debug1: session_by_channel: session 0 channel 0
Feb 15 12:51:24 jerom sshd[14392]: debug1: session_input_channel_req: session 0 req break


However, the connected process is not getting a SIGINT.
Comment 1 David Choweller 2011-02-17 05:10:50 AEDT
Changed version
Comment 2 Damien Miller 2011-04-13 15:01:56 AEST
Created attachment 2027 [details]
send break to correct fd

Break delivery in sshd was indeed broken. This patch should fix it, but I don't personally see any change in behaviour after applying it. Does it help your case?
Comment 3 Damien Miller 2011-11-04 11:39:39 AEDT
This fix is committed
Comment 4 Damien Miller 2015-08-11 23:05:19 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1