Mercurial > dropbear
changeset 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 | c56d40d54538 |
children | 6b306ad5f5b5 |
files | svr-chansession.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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) {