# HG changeset patch # User Matt Johnston # Date 1162479317 0 # Node ID 8eaa6e3ca6eb04b0eaecb1b8743ee8e320d0354f # Parent ed910547d44965220ecd5cd08a38fdb429fc3265 make code clearer and more robust (from Klocwork) diff -r ed910547d449 -r 8eaa6e3ca6eb svr-chansession.c --- 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; }