localsocket: properly signal hangup to peer

This commit is contained in:
Matheus
2026-05-28 23:52:35 -03:00
parent 762552ed5f
commit 1c7b74ccbf
+1
View File
@@ -839,6 +839,7 @@ static void localsock_destroy(socket_t *socket) {
if (*peerp == NULL) { if (*peerp == NULL) {
free(pair); free(pair);
} else { } else {
poll_event(&(*peerp)->socket.pollheader, POLLHUP);
*ourp = NULL; *ourp = NULL;
MUTEX_RELEASE(&pair->mutex); MUTEX_RELEASE(&pair->mutex);
} }