localsocket: EPIPE on read shutdown

This commit is contained in:
Matheus
2026-07-07 01:21:13 -03:00
parent 5414393872
commit c25807d976
+1 -1
View File
@@ -476,7 +476,7 @@ static int localsock_send(socket_t *socket, sockdesc_t *sockdesc) {
goto leave;
}
if (peer == NULL) {
if (peer == NULL || (peer->socket.shutdown & SOCKET_SHUTDOWN_READ)) {
if (current_thread()->proc && (sockdesc->flags & SOCKET_SEND_FLAGS_NOSIGNAL) == 0)
signal_signalproc(current_thread()->proc, SIGPIPE);