DASH Shell discussions
 help / color / mirror / Atom feed
* dash race
@ 2008-04-25 12:39 Alexey Gladkov
  2008-04-25 13:45 ` Oleg Verych
  2008-04-25 16:17 ` job control (Re: dash race) Oleg Verych
  0 siblings, 2 replies; 12+ messages in thread
From: Alexey Gladkov @ 2008-04-25 12:39 UTC (permalink / raw)
  To: dash list

Greetings!

Sometimes following script is get 99% CPU and will be never
finished. This happens with dash from git. I can't bisect
this because 05c1076 has this problem.

<================================
#!/bin/dash
trap "echo TRAP" USR1
stub() {
	echo ">>> STUB $1" >&2
	sleep $1
	echo "<<< STUB $1" >&2
	kill -USR1 $$
}
stub 3 &
stub 2 &
until { echo "###"; wait; } do
	echo "*** $?"
done
================================>

strace:
12541 wait4(-1, 0xaf87aca0, 0, NULL)    = -1 ECHILD (No child processes)
12541 wait4(-1, 0xaf87aca0, 0, NULL)    = -1 ECHILD (No child processes)
12541 wait4(-1, 0xaf87aca0, 0, NULL)    = -1 ECHILD (No child processes)

-- 
Rgrds, legion

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-02-22 10:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 12:39 dash race Alexey Gladkov
2008-04-25 13:45 ` Oleg Verych
2008-04-25 14:37   ` Alexey Gladkov
2008-04-25 16:17 ` job control (Re: dash race) Oleg Verych
2008-04-27 11:23   ` Alexey Gladkov
2008-04-27 11:49     ` Oleg Verych
2008-04-27 19:18       ` Alexey Gladkov
2008-04-29 12:20       ` Herbert Xu
2008-04-29 14:04       ` Herbert Xu
2008-04-29 15:51         ` Oleg Verych
2009-02-22 10:19         ` Herbert Xu
2008-04-27 20:35     ` Oleg Verych

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox