clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 607a2f11278269014326744883ebf3bff7a862d5
parent b30c01dbe3c8f1a13191cafb5171708ee80ef7d5
Author: Navneet Aman <navneetankur@gmail.com>
Date:   Thu, 14 Apr 2022 20:47:22 +0530

Back off if clipnotify fails

This probably means the X server is gone, so avoid spinning uselessly.
Diffstat:
Mclipmenud | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/clipmenud b/clipmenud @@ -151,7 +151,11 @@ while true; do # Make sure we're interruptible for the sig_{en,dis}able traps clipnotify & _CM_CLIPNOTIFY_PID="$!" - wait "$_CM_CLIPNOTIFY_PID" + if ! wait "$_CM_CLIPNOTIFY_PID"; then + # X server dead? + sleep 10 + continue + fi fi # Trapping a signal breaks the `wait`