Control-c not work under openssh?

Damien Miller djm at mindrot.org
Sat Aug 26 12:57:45 EST 2000


On Fri, 25 Aug 2000, Gert Doering wrote:

> > > /* NEW: set ctrl-C signal to "default", which is "abort program" */
> > >       signal( SIGINT, SIG_DFL );
> 
> > Yup, I put this in pty.c after line 261.
> > 
> > I have tested this with Solaris 7 and Solaris 8 (on sparc
> > systems) and it works fine :-) :-) I also used the new snapshot
> > (openssh-SNAP-20000823) for the tests, so hopefully it could be
> > included for the next release.

Well found people! 

I think it would be neater to reset this with the other signals.
Can you back out your change and try this patch?

Index: sshd.c
===================================================================
RCS file: /var/cvs/openssh/sshd.c,v
retrieving revision 1.87
diff -u -r1.87 sshd.c
--- sshd.c	2000/08/18 03:59:07	1.87
+++ sshd.c	2000/08/26 02:55:01
@@ -956,6 +956,7 @@
 	signal(SIGTERM, SIG_DFL);
 	signal(SIGQUIT, SIG_DFL);
 	signal(SIGCHLD, SIG_DFL);
+	signal(SIGINT, SIG_DFL);
 
 	/*
 	 * Set socket options for the connection.  We want the socket to

-d

-- 
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)








More information about the openssh-unix-dev mailing list