Only back off if _CM_TRAP is not set

Otherwise wait could return from the signal.
This commit is contained in:
Chris Down 2022-04-14 17:29:45 +01:00
parent 607a2f1127
commit 920c23b3cb

View file

@ -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