mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
localsocket: properly signal hangup to peer
This commit is contained in:
@@ -839,6 +839,7 @@ static void localsock_destroy(socket_t *socket) {
|
||||
if (*peerp == NULL) {
|
||||
free(pair);
|
||||
} else {
|
||||
poll_event(&(*peerp)->socket.pollheader, POLLHUP);
|
||||
*ourp = NULL;
|
||||
MUTEX_RELEASE(&pair->mutex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user