palaniyappanBala / klish

Automatically exported from code.google.com/p/klish
Other
0 stars 0 forks source link

CTRL-C does not generate any SIGINT on a ssh connection. #102

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. Add a command on Klish for launching a script (I used python) which executes:
"start-stop-daemon -p /var/run/sshd.pid -S -m -x /usr/sbin/ssh d> /dev/null 
2>&1"
2. Launch the ssh connection typing the command from the Klish command line
3. Login on the created SSH connection from a remote pc entering into bash.

What is the expected output? What do you see instead?
The keys <ctrl-c> and <ctrl-z>, <ctrl-\> do not work as expected, it seems to 
be ignored by the bash. 

What version of the product are you using? On what operating system?
This bug affects version 1.5.1
The operating system used is linux-buildroot

Please provide any additional information below.
1. The ssh connection works fine if launched directly from the bash.
2. The ssh connection works fine if launched directly from the python script on 
the bash.

stty -a gives the following result:
intr="C; quit=^\; erase="? ..... 

I did not try to avoid the python script and start directly the sshd but I do 
not expect any difference, infact from an indirect test I proved that the 
behavior does not depend on python.

Original issue reported on code.google.com by xdebi...@gmail.com on 27 Jan 2012 at 3:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
My fault sorry... there is no bug there.

I called a script that called startstop-daemon ssh. I was thinking that was not 
necessary interrupt="true" for the ssh (which is spawned with two forks) but I 
was wrong.

So setting interrupt="true"
everything works fine.

Original comment by xdebi...@gmail.com on 31 Jan 2012 at 3:45

GoogleCodeExporter commented 8 years ago

Original comment by serj.kalichev@gmail.com on 1 Feb 2012 at 6:30