]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Conditionalize iprop stderr output in kadmind 297/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 16 Jul 2015 17:43:14 +0000 (13:43 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 17 Jul 2015 03:16:42 +0000 (23:16 -0400)
kadmind should be quiet in nofork mode after it prints the
"starting..." sentinel line, or it can fill the pipe buffer when run
from k5test.py.  Since there is currently no run-time debuf flag,
conditionalize the DPRINT macro in ipropd_svc.c on DEBUG at compile
time.

ticket: 8219 (new)

src/kadmin/server/ipropd_svc.c

index bc760fa5f83f4de6a569ff16d0523957d4546be6..209c19a9e9dbf3d9a856101e1bfa7ed09aee8522 100644 (file)
@@ -51,6 +51,7 @@ static char *reply_unknown_str        = "<UNKNOWN_CODE>";
 #ifdef DPRINT
 #undef DPRINT
 #endif
+#ifdef DEBUG
 #define        DPRINT(...)                             \
     do {                                       \
        if (nofork) {                           \
@@ -58,7 +59,9 @@ static char *reply_unknown_str        = "<UNKNOWN_CODE>";
            fflush(stderr);                     \
        }                                       \
     } while (0)
-
+#else
+#define        DPRINT(...)
+#endif
 
 static void
 debprret(char *w, update_status_t ret, kdb_sno_t sno)