udevd: worker - drop reference counting
authorTom Gundersen <teg@jklm.no>
Mon, 27 Apr 2015 09:43:31 +0000 (11:43 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 6 May 2015 21:45:10 +0000 (23:45 +0200)
commitc6aa11f200bcdb910563964d4680807bde372a39
tree8f479426341aaaae194ce05b000a2a000a0a6efb
parent7f629b74c4adc483dd5733bd9191b58cfbdd157f
udevd: worker - drop reference counting

Make the worker context have the same life-span as the worker process. It is created on fork()
and free'd on SIGCHLD.

The change means that we can get worker_returned() for a worker context that is no longer around,
this is not a problem and we can just drop the message. The only use for worker_returned() is to
know to reschedule events to workers that are still around, so if the worker has already exited
it is not important to keep track of. We still print a debug statement in this case to be on the
safe side.
src/udev/udevd.c