From bf1d55c1aeef4d4755e1dbaf05cd625e48780bfb Mon Sep 17 00:00:00 2001 From: nia Date: Thu, 7 Apr 2022 22:33:28 +0200 Subject: startx: don't attempt to catch SIGKILL Most shells ignore attempts to catch SIGKILL. Some, such as NetBSD's /bin/sh, print an annoying message helpfully reminding you that it isn't possible to catch SIGKILL whenever X starts. Signed-off-by: Nia Alarie --- startx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startx.cpp b/startx.cpp index 31187b9..6502dbf 100644 --- a/startx.cpp +++ b/startx.cpp @@ -271,7 +271,7 @@ if [ x"$enable_xauth" = x1 ] ; then XCOMM create a file with auth information for the server. ':0' is a dummy. xserverauthfile=$HOME/.serverauth.$$ - trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP KILL BUS TERM + trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM xauth -q -f "$xserverauthfile" << EOF add :$dummy . $mcookie EOF -- cgit v1.2.1