Remove DAEMON defines
[platform/upstream/multipath-tools.git] / libmultipath / uxsock.c
index 7f3530d..a070943 100644 (file)
@@ -129,23 +129,21 @@ size_t read_all(int fd, void *buf, size_t len)
 int send_packet(int fd, const char *buf, size_t len)
 {
        int ret = 0;
-#ifdef DAEMON
        sigset_t set, old;
 
        /* Block SIGPIPE */
        sigemptyset(&set);
        sigaddset(&set, SIGPIPE);
        pthread_sigmask(SIG_BLOCK, &set, &old);
-#endif
+
        if (write_all(fd, &len, sizeof(len)) != sizeof(len))
                ret = -1;
        if (!ret && write_all(fd, buf, len) != len)
                ret = -1;
 
-#ifdef DAEMON
        /* And unblock it again */
        pthread_sigmask(SIG_SETMASK, &old, NULL);
-#endif
+
        return ret;
 }