Author: dnicholson
Date: 2007-04-16 15:18:52 -0600 (Mon, 16 Apr 2007)
New Revision: 8071

Modified:
   trunk/bootscripts/ChangeLog
   trunk/bootscripts/lfs/init.d/functions
Log:
Redirect stderr when using kill to suppress output


Modified: trunk/bootscripts/ChangeLog
===================================================================
--- trunk/bootscripts/ChangeLog 2007-04-16 21:12:45 UTC (rev 8070)
+++ trunk/bootscripts/ChangeLog 2007-04-16 21:18:52 UTC (rev 8071)
@@ -1,3 +1,7 @@
+2007-04-16     Dan Nicholson   <[EMAIL PROTECTED]>
+       * lfs/init.d/functions: Redirect stderr when using kill to suppress
+         output.
+
 2007-03-13     Dan Nicholson   <[EMAIL PROTECTED]>
        * lfs/init.d/functions: If pidofproc() is passed the -p argument
          it can bomb testing a null variable with an integer expression.

Modified: trunk/bootscripts/lfs/init.d/functions
===================================================================
--- trunk/bootscripts/lfs/init.d/functions      2007-04-16 21:12:45 UTC (rev 
8070)
+++ trunk/bootscripts/lfs/init.d/functions      2007-04-16 21:18:52 UTC (rev 
8071)
@@ -373,7 +373,7 @@
                for pid in ${lpids}
                do
                        if [ "${pid}" -ne "$$" -a "${pid}" -ne "${PPID}" ]; then
-                               kill -0 "${pid}" > /dev/null &&
+                               kill -0 "${pid}" 2>/dev/null &&
                                pidlist="${pidlist} ${pid}"
                        fi
                        

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to