Bug 1859

Summary: sshd does not forward break request to process as SIGINT
Product: Portable OpenSSH Reporter: David Choweller <david.choweller>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm
Priority: P2    
Version: 5.2p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1930    
Attachments:
Description Flags
send break to correct fd none

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