changeset 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 ed910547d449
children 9a789fc03f40
files svr-chansession.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svr-chansession.c	Thu Nov 02 14:49:20 2006 +0000
+++ b/svr-chansession.c	Thu Nov 02 14:55:17 2006 +0000
@@ -100,7 +100,7 @@
 
 		/* 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;
 		}