Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/guacd/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ static void* guacd_connection_write_thread(void* data) {
break;
}

/* Signal end of input to the connection process. Without this, a user
* which vanishes without sending "disconnect" leaves that process blocked
* awaiting input indefinitely, as nothing further will inform it that its
* last user has left. */
if (shutdown(params->fd, SHUT_WR))
guacd_log(GUAC_LOG_ERROR, "Unable to signal end of user input to "
"connection process: %s. That process may remain running but "
"inactive, retaining the memory of its connection until guacd "
"is restarted.", strerror(errno));

return NULL;

}
Expand Down
Loading