From 31d5a1ed8d94ddc5614cf5c4f5a3bafb76a0914d Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 14 Sep 2011 19:00:39 +0000 Subject: [PATCH] Fix terminate_workers() in the KDC git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25179 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. */ -- 2.26.2