Mercurial > dropbear
diff svr-chansession.c @ 133:b4cfe976c8e1
Initialise the "lastexit" variable so that we don't get session channels
terminating prematurely.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 17 Oct 2004 08:19:47 +0000 |
parents | 154c8d5a6d1e |
children | 0cfba3034be5 |
line wrap: on
line diff
--- a/svr-chansession.c Tue Sep 21 12:14:20 2004 +0000 +++ b/svr-chansession.c Sun Oct 17 08:19:47 2004 +0000 @@ -960,6 +960,7 @@ svr_ses.childpids[0].pid = -1; /* unused */ svr_ses.childpids[0].chansess = NULL; svr_ses.childpidsize = 1; + svr_ses.lastexit.exitpid = -1; /* Nothing has exited yet */ sa_chld.sa_handler = sesssigchild_handler; sa_chld.sa_flags = SA_NOCLDSTOP; if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {