From: Greg Hudson Date: Wed, 14 Sep 2011 19:00:39 +0000 (+0000) Subject: Fix terminate_workers() in the KDC X-Git-Tag: krb5-1.10-alpha1~196 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31d5a1ed8d94ddc5614cf5c4f5a3bafb76a0914d;p=krb5.git Fix terminate_workers() in the KDC git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25179 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/main.c b/src/kdc/main.c index fbccdb90f..e7d6c6f53 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -505,13 +505,12 @@ on_monitor_sighup(int signo) /* * Kill the worker subprocesses given by pids[0..bound-1], skipping any which * are set to -1, and wait for them to exit (so that we know the ports are no - * longer in use). num_active must be the number of active (i.e. not -1) pids - * in the array. + * longer in use). */ static void terminate_workers(pid_t *pids, int bound) { - int i, status, num_active; + int i, status, num_active = 0; pid_t pid; /* Kill the active worker pids. */