diff options
Diffstat (limited to 'src/rpcbind.c')
-rw-r--r-- | src/rpcbind.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/rpcbind.c b/src/rpcbind.c index 2236d79..6d8bed2 100644 --- a/src/rpcbind.c +++ b/src/rpcbind.c @@ -230,18 +230,16 @@ main(int argc, char *argv[]) (void) signal(SIGUSR1, SIG_IGN); (void) signal(SIGUSR2, SIG_IGN); - if (debugging) { #ifdef RPCBIND_DEBUG - printf("rpcbind debugging enabled."); - if (doabort) { - printf(" Will abort on errors!\n"); - } else { - printf("\n"); - } + if (debugging) { + xlog(LOG_DEBUG, "debugging enabled."); + if (doabort) + xlog(LOG_DEBUG, "Will abort on errors!\n"); + } #endif - } else if (dofork) { + if (dofork) { if (daemon(0, 0)) - err(1, "fork failed"); + err(1, "fork failed"); } if (runasdaemon || rpcbinduser) { |