Re: [ANNOUNCE] udev 0.1 release

Steven Dake
2003-04-11T20:17:40Z

Kevin P. Fleming wrote:

>
> What happens if these secondary hotplug events occur while
> /sbin/hotplug has not yet finished processing the first one? Ignoring
> locking/race issues for the moment, I'm concerned about memory
> consumption as many layers of hotplug/udev/kpartx/etc. are running
> processing these events.

It gets even worse, because performance of hotswap events on disk adds
is critical and spawning processes is incredibly slow compared to the
performance required by some telecom applications...

A much better solution could be had by select()ing on a filehandle
indicating when a new hotswap event is ready to be processed. No races,
no security issues, no performance issues.

>