Mercurial > dropbear
comparison svr-chansession.c @ 397:2908122e9eed channel-fix
disapproval of revision '1250b8af44b62d8f4fe0f8d9fc7e7a1cc34e7e1c'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 03 Feb 2007 08:10:09 +0000 |
parents | e7c1a77d2921 |
children | a5bca950120d |
comparison
equal
deleted
inserted
replaced
396:e7c1a77d2921 | 397:2908122e9eed |
---|---|
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 struct ChanSess *chansess = (struct ChanSess*)channel->typedata; | 70 return channel->writefd == -1; |
71 return chansess->exit.exitpid >= 0; | |
72 } | 71 } |
73 | 72 |
74 /* Handler for childs exiting, store the state for return to the client */ | 73 /* Handler for childs exiting, store the state for return to the client */ |
75 | 74 |
76 /* There's a particular race we have to watch out for: if the forked child | 75 /* There's a particular race we have to watch out for: if the forked child |