[PATCH 1/2] Handle verto_reinitialize()'s return value; new in libverto 0.2
Nathaniel McCallum
npmccallum at redhat.com
Wed Nov 9 16:54:39 EST 2011
---
src/kdc/main.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/kdc/main.c b/src/kdc/main.c
index e7d6c6f..8d4df87 100644
--- a/src/kdc/main.c
+++ b/src/kdc/main.c
@@ -572,7 +572,11 @@ create_workers(verto_ctx *ctx, int num)
for (i = 0; i < num; i++) {
pid = fork();
if (pid == 0) {
- verto_reinitialize(ctx);
+ if (!verto_reinitialize(ctx)) {
+ krb5_klog_syslog(LOG_ERR,
+ _("Unable to reinitialize main loop"));
+ return ENOMEM;
+ }
retval = loop_setup_signals(ctx, NULL, reset_for_hangup);
if (retval) {
krb5_klog_syslog(LOG_ERR, _("Unable to initialize signal "
--
1.7.7
More information about the krbdev
mailing list