There's a problem in the main loop, which is easily fixable... When a signal is trapped, the wait "$_CM_CLIPNOTIFY_PID" breaks, and the loop restarts, spawning another clipnotify job because the previous one was not killed by sig_enable...
On the other hand, sig_disable kills the current clipnotify job before restarting the loop... We need to do the same for sig_enable.
Hello,
While
clipmenud
is running, each timeclipctl enable
is executed anotherclipnotify
job is spawn...This bug is how I found out the need of #171 (fix to properly kill children jobs).
There's a problem in the main loop, which is easily fixable... When a signal is trapped, the
wait "$_CM_CLIPNOTIFY_PID"
breaks, and the loop restarts, spawning anotherclipnotify
job because the previous one was not killed bysig_enable
...On the other hand,
sig_disable
kills the currentclipnotify
job before restarting the loop... We need to do the same forsig_enable
.Thanks.