On 4/25/20 5:46 PM, Alexander Danel wrote:


---------- Forwarded message ---------
From: *Alexander Danel* <[email protected] <mailto:[email protected]>>
Date: Sat, 25 Apr 2020 at 17:33
Subject: bug in /lib/lsb/init-functions
To: <[email protected] <mailto:[email protected]>>


Found a bug.  I am looking at a copy of /lib/lsb/init-functions from way back in 2011-10-17.

In the function

pidofproc()

Towards the end of the function

     # Figure out if all listed PIDs are running.
     for pid in ${pidlist}; do
         kill -0 ${pid} 2> /dev/null

         if [ "${?}" -eq "0" ]; then
    # A-Danel, fix bug
#lpids="${pids}${pid} "
             lpids="${lpids}${pid} "
         else
             exitstatus="1"
         fi
     done


I don't think so. lpids is a list of pids (those in pidlist) that are active. Each iteration appends to the a list (lpids) which is initially empty.

Please explain why you think what we have is a bug.

Also, reply to lfs-supoprt. The patches list is not seen by very many people.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to