Date: Fri, 21 Nov 2025 22:53:27 +0000 From: Guido Falsi <madpilot@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 111df9b4cc42 - main - x11/xfce4-screensaver: Make sure pgrep evaluates all processes Message-ID: <6920ed67.3db3a.599763f6@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=111df9b4cc4219d8441beeeb7348bdf81c23a15f commit 111df9b4cc4219d8441beeeb7348bdf81c23a15f Author: Guido Falsi <madpilot@FreeBSD.org> AuthorDate: 2025-11-21 22:52:33 +0000 Commit: Guido Falsi <madpilot@FreeBSD.org> CommitDate: 2025-11-21 22:52:33 +0000 x11/xfce4-screensaver: Make sure pgrep evaluates all processes Use "-a" flag in pgrep invocation to make sure pgrep does not ignore his "ancestor" processes. Reported by: kevans (via irc) --- x11/xfce4-screensaver/Makefile | 2 +- x11/xfce4-screensaver/files/patch-src_gs-lock-plug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x11/xfce4-screensaver/Makefile b/x11/xfce4-screensaver/Makefile index 758f8aa92f63..a6e24c94a9fe 100644 --- a/x11/xfce4-screensaver/Makefile +++ b/x11/xfce4-screensaver/Makefile @@ -1,6 +1,6 @@ PORTNAME= xfce4-screensaver PORTVERSION= 4.20.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 xfce MASTER_SITES= XFCE/apps DIST_SUBDIR= xfce4 diff --git a/x11/xfce4-screensaver/files/patch-src_gs-lock-plug.c b/x11/xfce4-screensaver/files/patch-src_gs-lock-plug.c index e2b78d0e4701..30e2facb44a6 100644 --- a/x11/xfce4-screensaver/files/patch-src_gs-lock-plug.c +++ b/x11/xfce4-screensaver/files/patch-src_gs-lock-plug.c @@ -29,7 +29,7 @@ index d0806f64..fce7bf15 100644 - int num_processes; - gchar *command = g_strdup_printf ("pidof %s | wc -l", name); - FILE *fp = popen (command, "r"); -+ gchar *command = g_strdup_printf ("pgrep %s", name); ++ gchar *command = g_strdup_printf ("pgrep -a %s", name); + int rc = system (command); g_free (command);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6920ed67.3db3a.599763f6>
