From: erik quanstrom <quanstro@coraid.com>
To: rsc@swtch.com, quanstro@coraid.com, 9fans@cse.psu.edu
Subject: Re: [9fans] wait hang
Date: Tue, 19 Dec 2006 22:55:09 -0500 [thread overview]
Message-ID: <3c88b8bfb5216d40c70392c084358983@coraid.com> (raw)
there's a version of rc on sources (/n/sources/contrib/quanstro/rc-wait.tbz)
that keeps careful track of waits so "wait $pid" should be dependable,
at least in the basic approach, i did minimal minimal testing of the details.
there is somewhat verbose information printed along these lines:
; sleep & sleep & sleep & sleep
waitqadd(772665)
waitqadd(772666)
waitqadd(772667)
waitqadd(772668)
waitfor 772668
w->pid 772668
waitqrm(772668)
Xreturn i=0; p 205256, i=1
broken! wait 772665
waitfor 772665
w->pid 772667
w->pid 772666
w->pid 772665
waitqrm(772665)
Xreturn i=0; p 205256, i=1
broken! wait 772666
waitfor 772666
Xreturn i=0; p 205256, i=1
broken!
this output can be supressed by redefining the wdebug macro in exec.h.
the previous case of
; sleep $longtime &
; echo&echo&echo&
; wait $apid
should illustrate the difference.
- erik
next reply other threads:[~2006-12-20 3:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-20 3:55 erik quanstrom [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-18 20:45 erik quanstrom
[not found] <db450a2ec40aeb8284b66f00407cb1cb@coraid.com>
2006-12-18 20:06 ` Russ Cox
2006-12-18 20:00 erik quanstrom
2006-12-18 16:01 erik quanstrom
2006-12-18 16:40 ` Russ Cox
2006-12-18 19:05 ` erik quanstrom
2006-12-18 19:23 ` Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c88b8bfb5216d40c70392c084358983@coraid.com \
--to=quanstro@coraid.com \
--cc=9fans@cse.psu.edu \
--cc=rsc@swtch.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).