commit 920c23b3cb8e17376814fa9a32a8fc170a4ca7a5
parent 607a2f11278269014326744883ebf3bff7a862d5
Author: Chris Down <chris@chrisdown.name>
Date: Thu, 14 Apr 2022 17:29:45 +0100
Only back off if _CM_TRAP is not set
Otherwise wait could return from the signal.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clipmenud b/clipmenud
@@ -151,7 +151,7 @@ while true; do
# Make sure we're interruptible for the sig_{en,dis}able traps
clipnotify &
_CM_CLIPNOTIFY_PID="$!"
- if ! wait "$_CM_CLIPNOTIFY_PID"; then
+ if ! wait "$_CM_CLIPNOTIFY_PID" && ! (( _CM_TRAP )); then
# X server dead?
sleep 10
continue