diff 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
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;
 		}