On Fri, 2008-06-20 at 12:03 -0700, H. Peter Anvin wrote: > Ian Kent wrote: > >> Okay, I'm confused... what reason could there *possibly* be for > >> searching /proc/*/cmdline? If there is a need for a mutex of some sort, > >> one should typically create a /var/run directory and put in lock files, > >> or some other solution to test the mutexing explicitly. grepping ps, in > >> effect, is hardly a good idea, to put it gently. > > > > This is nothing more than a check to see if another instance of > > automount(8) is running. > > But it is an utterly daft way to implement something like that. If you > want a lock, create an explicit lock, but doing string-matching on > command lines is idiotic.
This isn't a lock or anything remotely like it. And, yes, if run together closely enough the check could easily fail to work but that isn't what the check is about. Put another way, running multiple instances of the autofs version 5 daemon isn't supported at the moment. For the common case usage multiple instances of the daemon aren't needed. _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
