mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user