Kay Sievers wrote:
On Mon, Jun 1, 2009 at 15:57, Kay Sievers <kay.sievers@xxxxxxxx> wrote:
The code looked like you freed the worker, but left the event RUNNING, and
it would never be released. I would delete the event instead, just like the
old system.
I haven't read V2 yet though, maybe you fixed it.
I just set it back to QUEUED for now. Not sure if droppin git or
re-trying it a few times would be better.
Version 3, which should clean up events with a worker that died. Also
kills all workers if the config has changed.
For strict correctness, I guess we need to do the same for "udevadm
control --log-priority" and "udevadm control --env".
Hmm, it says worker_kill_idle(). If there are running events at the
time, their stale workers will survive. At the moment kill(worker->pid,
SIGTERM) allows the current event to finish before it terminates, so one
solution would be to just kill all the workers.
Regards
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html