[hackers] [dmenu][PATCH] dmenu_run: run "exec program" instead of "program" in shell

From: наб <nabijaczleweli_AT_nabijaczleweli.xyz>
Date: Tue, 10 Nov 2020 23:09:24 +0100

This means that for long-running programs the process tree is
/init → program instead of /init → /bin/sh → program
---
Please keep me in CC
 dmenu_run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dmenu_run b/dmenu_run
index 834ede5..9a68aa8 100755
--- a/dmenu_run
+++ b/dmenu_run
_AT_@ -1,2 +1,2 @@
 #!/bin/sh
-dmenu_path | dmenu "$_AT_" | ${SHELL:-"/bin/sh"} &
+dmenu_path | dmenu "$_AT_" | sed 's/^/exec /' | ${SHELL:-"/bin/sh"} &
-- 
2.29.2

Received on Tue Nov 10 2020 - 23:09:24 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 10 2020 - 23:12:33 CET