summaryrefslogtreecommitdiffstats
path: root/src/kdc
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-09-14 16:12:29 +0000
committerGreg Hudson <ghudson@mit.edu>2011-09-14 16:12:29 +0000
commit6cae0a18e4fb6fc3469b5bdf75f888f580dbdec0 (patch)
tree7b7b3df4bf918a1bc7d5a8571af085ecdee46b66 /src/kdc
parent61941e636016405b5dfbb031e2904dcce4c83801 (diff)
Reinitialize verto after creating worker child
Also mark fd events as reinitiable so they survive the fork. From npmccallum@redhat.com. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25175 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc')
-rw-r--r--src/kdc/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kdc/main.c b/src/kdc/main.c
index 979c2173a..c978a77a9 100644
--- a/src/kdc/main.c
+++ b/src/kdc/main.c
@@ -550,6 +550,8 @@ create_workers(verto_ctx *ctx, int num)
for (i = 0; i < num; i++) {
pid = fork();
if (pid == 0) {
+ verto_reinitialize(ctx);
+
/* Return control to main() in the new worker process. */
free(pids);
return 0;