diff options
| author | Greg Hudson <ghudson@mit.edu> | 2011-09-14 19:00:39 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2011-09-14 19:00:39 +0000 |
| commit | 31d5a1ed8d94ddc5614cf5c4f5a3bafb76a0914d (patch) | |
| tree | da1f0fb874c68b6627bab34163b53f279e10b5db /src | |
| parent | 72f42cefb51afc939a621c6b1560d210492c45a4 (diff) | |
| download | krb5-31d5a1ed8d94ddc5614cf5c4f5a3bafb76a0914d.tar.gz krb5-31d5a1ed8d94ddc5614cf5c4f5a3bafb76a0914d.tar.xz krb5-31d5a1ed8d94ddc5614cf5c4f5a3bafb76a0914d.zip | |
Fix terminate_workers() in the KDC
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25179 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/kdc/main.c | 5 |
1 files 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. */ |
