Running program many times I noticed that

ps -p $$ -o pid,args > waiting.$$;
lockfile -1 setting
if ! cat waiting.$$ | egrep -q '[0-9]'
then
        ps -p $$ -o pid,args > check.$$
        echo "What's going on!!!"
        exit 1;
fi


sometimes it prints "What is going on". File waiting.1234 contains only ps-headers, that is

  PID COMMAND

while check.1234 contains

PID     COMMAND
1234    ./my_program arg1 arg2


Is this a bug?









--
www.TOTALIZM.com UFO Earth Occupation http://jan-pajak.com/wtc.htm http://jan-pajak.com/shuttle.htm http://jan-pajak.com/predators.htm


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to