Mercurial > dropbear
comparison svr-chansession.c @ 369:8eaa6e3ca6eb
make code clearer and more robust (from Klocwork)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 02 Nov 2006 14:55:17 +0000 |
parents | 1f5ec029dfe8 |
children | fbcc3b5b34f3 |
comparison
equal
deleted
inserted
replaced
368:ed910547d449 | 369:8eaa6e3ca6eb |
---|---|
98 } | 98 } |
99 } | 99 } |
100 | 100 |
101 /* If the pid wasn't matched, then we might have hit the race mentioned | 101 /* If the pid wasn't matched, then we might have hit the race mentioned |
102 * above. So we just store the info for the parent to deal with */ | 102 * above. So we just store the info for the parent to deal with */ |
103 if (i == svr_ses.childpidsize) { | 103 if (exit == NULL) { |
104 exit = &svr_ses.lastexit; | 104 exit = &svr_ses.lastexit; |
105 } | 105 } |
106 | 106 |
107 exit->exitpid = pid; | 107 exit->exitpid = pid; |
108 if (WIFEXITED(status)) { | 108 if (WIFEXITED(status)) { |