summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-11-02 14:55:17 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-11-02 14:55:17 +0000
commit20fb9ea3511386ec179b840fb8e92030cd542cc4 (patch)
tree00303c50afec2b7915ba5b5ab9343f6877e2b882 /svr-chansession.c
parentee6f01918cf4a2eee1dabd34798533bfcb5e28fb (diff)
make code clearer and more robust (from Klocwork)
--HG-- extra : convert_revision : 397b243ca9ec623ded7b5b93e115dc460527acca
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index 0916e7e..534ea1d 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -100,7 +100,7 @@ static void sesssigchild_handler(int UNUSED(dummy)) {
/* If the pid wasn't matched, then we might have hit the race mentioned
* above. So we just store the info for the parent to deal with */
- if (i == svr_ses.childpidsize) {
+ if (exit == NULL) {
exit = &svr_ses.lastexit;
}