]> git.meshlink.io Git - catta/commitdiff
systemd: fix sd_is_socket() invocation
authorLennart Poettering <lennart@poettering.net>
Sat, 2 Apr 2011 00:46:16 +0000 (02:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 2 Apr 2011 00:46:16 +0000 (02:46 +0200)
avahi-daemon/simple-protocol.c

index 7f755621f926a647f26905d30db2e2c88169d1d6..3e0ebb114444a665e046b9b0d9ada1c10d0c73c6 100644 (file)
@@ -475,7 +475,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) {
     if (n == 1) {
         int r;
 
-        if ((r = sd_is_socket(AF_LOCAL, SOCK_STREAM, 1, 0)) < 0) {
+        if ((r = sd_is_socket(SD_LISTEN_FDS_START, AF_LOCAL, SOCK_STREAM, 1)) < 0) {
             avahi_log_warn("Passed systemd file descriptor is of wrong type: %s", strerror(-r));
             goto fail;
         }