From bf8652401d909d09ce1794cd663e052a674a5e0e Mon Sep 17 00:00:00 2001 From: Earnestly Date: Thu, 19 Jul 2018 14:07:12 +0100 Subject: [PATCH] sx: slightly clarity the signal negotiation This should properly emphasise that we are receiving a USR1 signal back from the server itself. --- sx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sx b/sx index 5f3e4e5..8ccceb9 100755 --- a/sx +++ b/sx @@ -35,10 +35,10 @@ trap 'cleanup' EXIT xauth add :"$tty" MIT-MAGIC-COOKIE-1 "$(od -An -N16 -tx /dev/urandom | tr -d ' ')" # Xorg will check if its SIGUSR1 disposition is SIG_IGN and use this state to -# reply back to the parent process with SIGUSR1 as an indication it is ready -# to accept connections. +# reply back to the parent process with its own SIGUSR1 as an indication it is +# ready to accept connections. # Taking advantage of this feature allows us to launch our client directly -# from the SIGUSR1 handler and avoid the need to poll for server readiness. +# from a SIGUSR1 handler and avoid the need to poll for server readiness. trap 'DISPLAY=:$tty "${@:-$cfgdir/sxrc}"' USR1 (trap '' USR1 && exec Xorg :"$tty" -keeptty vt"$tty" -noreset -auth "$XAUTHORITY") & pid=$! wait "$pid"