diff --git a/sysutils/conmon/Makefile b/sysutils/conmon/Makefile index 647b8c588b6f..3cbe944f10a1 100644 --- a/sysutils/conmon/Makefile +++ b/sysutils/conmon/Makefile @@ -1,21 +1,21 @@ PORTNAME= conmon DISTVERSIONPREFIX= v DISTVERSION= 2.1.13 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= sysutils MAINTAINER= dfr@FreeBSD.org COMMENT= OCI container runtime monitor WWW= https://github.com/containers/conmon LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libglib-2.0.so:devel/glib20 USES= gmake go:no_targets pkgconfig USE_GITHUB= yes GH_ACCOUNT= containers .include diff --git a/sysutils/conmon/sysutils/conmon/files/patch-src_conn__sock.c b/sysutils/conmon/sysutils/conmon/files/patch-src_conn__sock.c new file mode 100644 index 000000000000..2e580c8b5563 --- /dev/null +++ b/sysutils/conmon/sysutils/conmon/files/patch-src_conn__sock.c @@ -0,0 +1,11 @@ +--- src/conn_sock.c.orig 2026-01-23 16:22:04 UTC ++++ src/conn_sock.c +@@ -360,7 +360,7 @@ 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); + +- if (remote_sock->writable && write_all(remote_sock->fd, buf, len) < 0) { ++ if (remote_sock->writable && send(remote_sock->fd, buf, len, MSG_EOR) < 0) { + nwarn("Failed to write to remote console socket"); + remote_sock_shutdown(remote_sock, SHUT_WR); + }