From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Tue, 2 Aug 2005 18:48:05 -0400 From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] debugging p9p threads question In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Topicbox-Message-UUID: 72841a02-ead0-11e9-9d60-3106f5b1d025 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=20 main proc will exit, leaving the rest in the background. Russ