I have submitted this patch before, and I think it's sane. Please look at
it an say if I'm insane.
seb
--- autofs.old Tue Jun 19 17:19:24 2001
+++ autofs Tue Jun 19 18:06:26 2001
@@ -267,10 +267,10 @@
TMP1=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make temp file" >& 2;
exit 1; }
TMP2=`mktemp /tmp/autofs.XXXXXX` || { echo "could not make temp file" >& 2;
exit 1; }
getmounts >$TMP1
- ps ax|grep "[0-9]:[0-9][0-9] $DAEMON " | (
+ ps axwww|grep "[0-9]:[0-9][0-9] $DAEMON " | (
while read pid tt stat time command; do
echo "$command" >>$TMP2
- if ! grep -q "^$command" $TMP2; then
+ if ! grep -q "^$command" $TMP1; then
while kill -USR2 $pid; do
sleep 3
done