All, When logging into an HP-UX 10.2 system from a Windows NT machine running Cygwin and openssh 2.9p2, control-c sends a sigint to the ssh client on the NT system, thus killing the ssh process. Interestingly enough, this behavior is only observed when using X11 forwarding. I can eliminate the behavior by changing clientloop.c to ignore SIGINT (signal(SIGINT, SIG_IGN) ) but then I'm bak to the old behavior of the remote shell ignoring SIGINT. Any suggestions? Scott
Hi, On Wed, Jun 27, 2001 at 01:48:43PM -0400, Scott Crosby wrote:> When logging into an HP-UX 10.2 system from a Windows NT machine > running Cygwin and openssh 2.9p2, control-c sends a sigint to the ssh client > on the NT system, thus killing the ssh process. Interestingly enough, this > behavior is only observed when using X11 forwarding. I can eliminate the > behavior by changing clientloop.c to ignore SIGINT (signal(SIGINT, SIG_IGN) > ) but then I'm bak to the old behavior of the remote shell ignoring SIGINT.If the client were running on a unix machine, I'd say that the "ISIG" and/or "ICANON" flags of the tty control structure are not cleared (thus making the local terminal handler interpret ctrl-c and generate a SIGINT). As this is Cygwin, I have no idea, never used this, and I have no idea whether they have POSIX tty "things" (POSIX termios structure, and underlying logic). gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany gert at greenie.muc.de fax: +49-89-35655025 gert.doering at physik.tu-muenchen.de
Gert, Both ISIG and ICANON are being cleared (both with and without x11 forwarding enabled,) vi enter_raw_mode() in sshtty.c. The part that perplexes me is that the bug only shows up when x11 forwarding is enabled. Any ideas? -----Original Message----- From: Gert Doering [mailto:gert at greenie.muc.de] Sent: Wednesday, June 27, 2001 5:36 PM To: Scott Crosby; 'openssh-unix-dev at mindrot.org' Subject: Re: OpenSSH, Cygwin, eXceed, and SIGINT Hi, On Wed, Jun 27, 2001 at 01:48:43PM -0400, Scott Crosby wrote:> When logging into an HP-UX 10.2 system from a Windows NT machine > running Cygwin and openssh 2.9p2, control-c sends a sigint to the sshclient> on the NT system, thus killing the ssh process. Interestingly enough,this> behavior is only observed when using X11 forwarding. I can eliminate the > behavior by changing clientloop.c to ignore SIGINT (signal(SIGINT,SIG_IGN)> ) but then I'm bak to the old behavior of the remote shell ignoringSIGINT. If the client were running on a unix machine, I'd say that the "ISIG" and/or "ICANON" flags of the tty control structure are not cleared (thus making the local terminal handler interpret ctrl-c and generate a SIGINT). As this is Cygwin, I have no idea, never used this, and I have no idea whether they have POSIX tty "things" (POSIX termios structure, and underlying logic). gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany gert at greenie.muc.de fax: +49-89-35655025 gert.doering at physik.tu-muenchen.de