Print a "starting..." message on stderr if running in nofork mode, for
authorTom Yu <tlyu@mit.edu>
Wed, 28 Oct 2009 17:09:00 +0000 (17:09 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 28 Oct 2009 17:09:00 +0000 (17:09 +0000)
consistency with kadmind behavior.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23077 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/main.c

index 9ce3f48941966a101d2456967cbd4d7ae7e6ca26..039d918d1161860e62d0bc3c0a07bf4611733b63 100644 (file)
@@ -891,6 +891,8 @@ int main(int argc, char **argv)
        return 1;
     }
     krb5_klog_syslog(LOG_INFO, "commencing operation");
+    if (nofork)
+       fprintf(stderr, "%s: starting...\n", kdc_progname);
     if ((retval = listen_and_process())) {
        kdc_err(kcontext, retval, "while processing network requests");
        errout++;