Remove POLLRDNORM (equivalent to POLLIN)
authorTamás Földesi <tamas.foldesi@more.no>
Wed, 8 Jul 2015 15:02:14 +0000 (17:02 +0200)
committerFlorian Forster <octo@collectd.org>
Fri, 13 Nov 2015 09:57:03 +0000 (10:57 +0100)
src/common.c

index 7adbe2e..64bc42d 100644 (file)
@@ -274,7 +274,7 @@ ssize_t swrite (int fd, const void *buf, size_t count)
        
        /* checking for closed peer connection */
        pfd.fd = fd;
-       pfd.events = POLLIN | POLLHUP | POLLRDNORM;
+       pfd.events = POLLIN | POLLHUP;
        pfd.revents = 0;
        if (poll(&pfd, 1, 0) > 0) {
                char buffer[32];