]> git.meshlink.io Git - catta/commitdiff
main: don't abort if daemon_close_all() cannot close valgrind fds
authorLennart Poettering <lennart@poettering.net>
Mon, 28 Jun 2010 23:10:18 +0000 (01:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 28 Jun 2010 23:10:18 +0000 (01:10 +0200)
avahi-daemon/main.c

index 6dd2dcd3062bbc84a2b9ca9e8ad77a9419320e12..ca1a85499ea9cfe593d3177ef19fbcd50249563f 100644 (file)
@@ -1525,10 +1525,8 @@ int main(int argc, char *argv[]) {
             daemon_log_use = DAEMON_LOG_SYSLOG;
 
         if (sd_listen_fds(0) <= 0)
-            if (daemon_close_all(-1) < 0) {
-                avahi_log_error("Failed to close remaining file descriptors: %s", strerror(errno));
-                goto finish;
-            }
+            if (daemon_close_all(-1) < 0)
+                avahi_log_warn("Failed to close all remaining file descriptors: %s", strerror(errno));
 
         if (make_runtime_dir() < 0)
             goto finish;