Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 111bfcef authored by Nick Pelly's avatar Nick Pelly
Browse files

Fix bug where ECONNABORTED would have always occured on asocket_write.

Use POLLOUT for writes. Duh.
parent 92a7541b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -239,7 +239,7 @@ int asocket_write(struct asocket *s, const void *buf, size_t count,
    }

    if (pfd[0].revents) {
        if (pfd[0].revents & POLLIN) {
        if (pfd[0].revents & POLLOUT) {
            /* ready to write() without blocking */
            do {
                ret = write(s->fd, buf, count);