[25689] in CVS-changelog-for-Kerberos-V5
svn rev #25179: trunk/src/kdc/
daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Wed Sep 14 15:00:42 2011
Date: Wed, 14 Sep 2011 15:00:40 -0400
From: ghudson@mit.edu
Message-Id: <201109141900.p8EJ0e2X005478@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
http://src.mit.edu/fisheye/changelog/krb5/?cs=25179
Commit By: ghudson
Log Message:
Fix terminate_workers() in the KDC.
Changed Files:
U trunk/src/kdc/main.c
Modified: trunk/src/kdc/main.c
===================================================================
--- trunk/src/kdc/main.c 2011-09-14 16:12:39 UTC (rev 25178)
+++ trunk/src/kdc/main.c 2011-09-14 19:00:39 UTC (rev 25179)
@@ -505,13 +505,12 @@
/*
* 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. */
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5