Author: blues
Date: Sat Apr 14 23:55:47 2007
New Revision: 8458

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- allow to have more than one line in pidfile


Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions      (original)
+++ rc-scripts/trunk/rc.d/init.d/functions      Sat Apr 14 23:55:47 2007
@@ -666,10 +666,9 @@
                pidfile="/var/run/${pidfile}";
        fi
        if [ -f "${pidfile}" ] ; then
-               typeset line p pid
+               typeset p pid
                pid=
-               read line < "${pidfile}"
-               for p in $line; do
+               for p in $(< "${pidfile}"); do
                        [ -z "$(echo "$p" | awk '{gsub(/[0-9]/,"");print;}')" ] 
&& pid="$pid $p"
                done
        fi
_______________________________________________
pld-cvs-commit mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to