diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index e15a40a6d..829c5e5f8 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -1999,6 +1999,9 @@ static int send_message(void *buf, int msglen, const char *csid, int fd, return clops->cluster_send_message(buf, msglen, csid, errtext); } + if (fd < 0) + return 0; + /* Make sure it all goes */ for (ptr = 0; ptr < msglen;) { if ((len = write(fd, (char*)buf + ptr, msglen - ptr)) <= 0) {