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
4 changes: 4 additions & 0 deletions src/conn_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,11 @@ void write_back_to_remote_consoles(char *buf, int len)
for (int i = local_mainfd_stdin.readers->len; i > 0; i--) {
struct remote_sock_s *remote_sock = g_ptr_array_index(local_mainfd_stdin.readers, i - 1);

#ifdef __FreeBSD__
if (remote_sock->writable && send(remote_sock->fd, buf, len, MSG_EOR) < 0) {
#else
if (remote_sock->writable && write_all(remote_sock->fd, buf, len) < 0) {
#endif
nwarn("Failed to write to remote console socket");
remote_sock_shutdown(remote_sock, SHUT_WR);
}
Expand Down
Loading