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

Commit 6ac770fc authored by Selim Gurun's avatar Selim Gurun
Browse files

Do not generate SIGPIPE errors in SocketCLient.

This change is to make sure the users of library does not crash
if they are not handling SIGPIPE properly.

Change-Id: I4ea80d6bfc26a4bca6b901959ae3060b059d46d3
parent 63d84d04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ int SocketClient::sendDataLocked(const void *data, int len) {
    }

    while (brtw > 0) {
        rc = write(mSocket, p, brtw);
        rc = send(mSocket, p, brtw, MSG_NOSIGNAL);
        if (rc > 0) {
            p += rc;
            brtw -= rc;