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.
-hpa
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs