[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deadlock in waitchld()

From: Roman Rakus
Subject: Re: deadlock in waitchld()
Date: Fri, 24 May 2013 14:12:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

I have done a bit of debugging and have some results:
The problem is that waitchld is called even if there aren't any children running. The waitchld() is called more then once. I don't know what is the logic behind it.

Will check, if there is any child, helps?


On 05/20/2013 04:11 PM, Roman Rakus wrote:
Bash hangs in wait4() (WAITPID) if TERM signal trap handler is executed
during execution of pipeline.


trap "/bin/echo trapped $$" TERM
printf '%d\n' $$
while :; do
   dd if=/dev/zero bs=1k count=128 2>&1 | cat > /dev/null

and bombard the bash process with TERM signals:
while :; do
   kill -TERM $1 || break
   usleep 100000

reply via email to

[Prev in Thread] Current Thread [Next in Thread]