On Samstag, 13. Juli 2024 16:25:16 MESZ Andrei Borzenkov wrote:
On 13.07.2024 17:11, mh@mike.franken.de wrote:
Hi *,
starting with the last two NetworkManager versions, my dispatcher script On which distribution?
openSUSE Tumbleweed 20240711, sry
does not finish when going to sleep. It finishes on resume, though, causing some strange effects. It's runtime is 1 or 2 seconds only, so this is not a problem of hitting the dispatcher timeout. Anyway in this case it wouldn't continue after resume, I believe.
Why do you believe it? How dispatcher script is different from any other running program that will continue to run across suspend/resume?
If it would have been killed before, because of running into the dispatcher timeout, I'd suspect it would be running afterwards!?!? I already had that situation, but the actual behavior is different.
Besides, quoting manual page:
Dispatcher scripts are run one at a time ... once a script is queued, it will always be run, even if a later event renders it obsolete.
Your script may not even begin execution before resume because some other scripts have been running.
It is the only dispatcher script. And the same happens, if it is linked into no-wait.d.
Any idea, what is happening here, and how to avoid it?
TIA.
Bye. Michael.