mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
localsocket: EPIPE on read shutdown
This commit is contained in:
@@ -476,7 +476,7 @@ static int localsock_send(socket_t *socket, sockdesc_t *sockdesc) {
|
|||||||
goto leave;
|
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)
|
if (current_thread()->proc && (sockdesc->flags & SOCKET_SEND_FLAGS_NOSIGNAL) == 0)
|
||||||
signal_signalproc(current_thread()->proc, SIGPIPE);
|
signal_signalproc(current_thread()->proc, SIGPIPE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user