From 20fb9ea3511386ec179b840fb8e92030cd542cc4 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 2 Nov 2006 14:55:17 +0000 Subject: [PATCH] make code clearer and more robust (from Klocwork) --HG-- extra : convert_revision : 397b243ca9ec623ded7b5b93e115dc460527acca --- svr-chansession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }