Skip to content

Commit 9eb26dd

Browse files
AtkinsSJawesomekling
authored andcommitted
LibCore: Mark LocalServer client sockets as MSG_NOSIGNAL
Make LocalServer connections not terminate their process from SIGPIPE, which fixes the issue where closing DisplaySettings with the[OK] button would often crash WindowServer.
1 parent cb5f836 commit 9eb26dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Libraries/LibCore/LocalServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ ErrorOr<NonnullOwnPtr<Stream::LocalSocket>> LocalServer::accept()
133133
(void)fcntl(accepted_fd, F_SETFD, FD_CLOEXEC);
134134
#endif
135135

136-
return Stream::LocalSocket::adopt_fd(accepted_fd);
136+
return Stream::LocalSocket::adopt_fd(accepted_fd, Stream::PreventSIGPIPE::Yes);
137137
}
138138

139139
}

0 commit comments

Comments
 (0)