Mercurial > dropbear
comparison svr-chansession.c @ 396:e7c1a77d2921
disapproval of revision '2186a678a5f79ef432f6593a10e3e13df2a313d5'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:09:55 +0000 |
parents | d6b8815a9b5e |
children | 2908122e9eed 59c7938af2bd |
comparison
equal
deleted
inserted
replaced
331:d6b8815a9b5e | 396:e7c1a77d2921 |
---|---|
65 | 65 |
66 /* required to clear environment */ | 66 /* required to clear environment */ |
67 extern char** environ; | 67 extern char** environ; |
68 | 68 |
69 static int sesscheckclose(struct Channel *channel) { | 69 static int sesscheckclose(struct Channel *channel) { |
70 return channel->writefd == -1; | 70 struct ChanSess *chansess = (struct ChanSess*)channel->typedata; |
71 return chansess->exit.exitpid >= 0; | |
71 } | 72 } |
72 | 73 |
73 /* Handler for childs exiting, store the state for return to the client */ | 74 /* Handler for childs exiting, store the state for return to the client */ |
74 | 75 |
75 /* There's a particular race we have to watch out for: if the forked child | 76 /* There's a particular race we have to watch out for: if the forked child |