From: Russ Cox <russcox@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] debugging p9p threads question
Date: Tue, 2 Aug 2005 18:48:05 -0400 [thread overview]
Message-ID: <ee9e417a05080215483332b6ac@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0508021631260.27135@enigma.lanl.gov>
Print statements.
Your call to threadexitsall(0) at the end of
threadmain is wrong. It should be threadexits().
Threadexitsall makes all the procs exit, which
is not what you want. Calling threadexits will
cause the threadmain thread to exit, and since
that is the only thread in the main proc, the
main proc will exit, leaving the rest in the background.
Russ
next prev parent reply other threads:[~2005-08-02 22:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-02 22:42 Ronald G. Minnich
2005-08-02 22:48 ` Russ Cox [this message]
2005-08-02 23:00 ` Ronald G. Minnich
2005-08-02 23:36 ` Charles Forsyth
2005-08-03 7:20 ` Uriel
2005-08-03 10:40 ` Russ Cox
2005-08-03 12:12 ` Ronald G. Minnich
2005-08-06 23:48 ` Harri Haataja
2005-08-09 14:48 ` Gorka guardiola
2005-08-03 0:12 YAMANASHI Takeshi
2005-08-03 0:31 ` Skip Tavakkolian
2005-08-03 5:49 ` LiteStar numnums
2005-08-03 6:56 ` Tim Newsham
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=ee9e417a05080215483332b6ac@mail.gmail.com \
--to=russcox@gmail.com \
--cc=9fans@cse.psu.edu \
/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).