don't use stderr after we become a daemon
authorAndrew Tridgell <tridge@samba.org>
Mon, 24 Jan 2000 09:19:44 +0000 (09:19 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 24 Jan 2000 09:19:44 +0000 (09:19 +0000)
clientserver.c
io.c

index 8c55807..8cf7bab 100644 (file)
@@ -448,7 +448,6 @@ int daemon_main(void)
        become_daemon();
 
        if (!lp_load(config_file, 1)) {
-               fprintf(stderr,"failed to load config file %s\n", config_file);
                exit_cleanup(RERR_SYNTAX);
        }
 
@@ -464,7 +463,7 @@ int daemon_main(void)
                if ((fd = do_open(lp_pid_file(), O_WRONLY|O_CREAT|O_TRUNC,
                                        0666 & ~orig_umask)) == -1) {
                    cleanup_set_pid(0);
-                   fprintf(stderr,"failed to create pid file %s\n", pid_file);
+                   rprintf(FLOG,"failed to create pid file %s\n", pid_file);
                    exit_cleanup(RERR_FILEIO);
                }
                slprintf(pidbuf, sizeof(pidbuf), "%d\n", pid);
diff --git a/io.c b/io.c
index ae398f2..3930e47 100644 (file)
--- a/io.c
+++ b/io.c
@@ -614,7 +614,6 @@ void io_start_multiplex_in(int fd)
        multiplex_in_fd = fd;
        io_flush();
        if (read_buffer_len) {
-               fprintf(stderr,"ERROR: data in read buffer at mplx start\n");
                exit_cleanup(RERR_STREAMIO);
        }