I have a program running on a remote machine which expects to receive SIGINT from the parent. That program needs to receive that signal to function correctly. Unfortunately,
$ ssh -t foo.bar.com gdb ... (gdb) ^C Quit
Can you run a terminal on the remote machine and use kill -INT
to send it the signal?
Try signal SIGINT
at the gdb prompt.
It looks like you're doing ctrl+c. The problem is that your terminal window is sending SIGINT to the ssh process running locally, not to the process on the remote system.
You'll have to specify a signal manually using the kill
command or system call on the remote system.
or more conveniently using killall
$killall -INT gdb