Hi, > On Fri, 04.09.09 21:27, Florian Zumbiehl (florz@xxxxxxxx) wrote: > > > plus, it seems to be the simpler solution by far - which is why I went > > with flock() in my suggested fix you find below. Untested, as usual, and > > I don't really have a clue whether there are any unhealthy interactions > > with the rest of udev in this solution. Also, you most likely will want > > to change the path of the lock file ;-) > > Never use flock. > > All Unix locking APIs are broken in one way or the other. But if you > use one then at least use fcntl(F_SETLK) which is the least broken. What exactly is broken in flock() (that affects this use)? Florian -- 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