When I press Control-C while running a command (e.g., sleep 1) on QNX 6, after the command finishes, the connection is closed: > $ qnx18 > Welcome to QNX Neutrino! > sh: j_init: tcgetpgrp() failed: Inappropriate I/O control operation > sh: warning: won't have full job control > Mon Feb 13 08:23:04 2006 on /dev/ttyp3 > Last login: Mon Feb 13 08:21:32 2006 on /dev/ttyp2 > $ sleep 1 # I pressed C-c here. > Connection to qnx18 closed by remote host. > Connection to qnx18 closed. When I run sshd -d, pressing C-c kills sleep but does not cause the connection to close. I used the 20060213 snapshot.
Please try each of: ./configure --with-cflags=-DSSHD_ACQUIRES_CTTY check_for_openpty_ctty_bug=1 ./configure If it's the former, then see bug #245 for an explanation.
Created attachment 1066 [details] Define SSHD_ACQUIRES_CTTY on QNX Defining SSHD_ACQUIRES_CTTY fixes the problem, so the attached patch makes configure do so on QNX.
Cool, thanks. Adding to the list for the next release.
Patch applied, thanks. It will be in the 4.4 release.
With the release of 4.4, we believe that this bug is now closed. For information about the release please see http://www.openssh.com/txt/release-4.4 .