[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: threads question
- To: Omer Musaev <omerm(at-nospam)mercury.co.il>
- Subject: Re: threads question
- From: Oleg Goldshmidt <ogoldshmidt(at-nospam)computer.org>
- Date: 26 Nov 2001 22:51:29 -0500
- Cc: "'linux-il(at-nospam)linux.org.il'" <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <E9F3EF9AD316D511A5150002A55110B801425F82@exchil03.mercury.co.il>
- Organization: Speaking for myself only.
- Original-Sender: ogoldshmidt@computer.org
- References: <E9F3EF9AD316D511A5150002A55110B801425F82@exchil03.mercury.co.il>
- Reply-To: linux-il(at-nospam)linux.org.il
- Sender: ogoldshmidt(at-nospam)computer.org
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)
Omer Musaev <omerm@mercury.co.il> writes:
> AFAIK, you should not "return NULL; " from a pthread, but rather
> "pthread_exit( NULL ); "
Then I get the same segfault stepping through pthread_exit().
I am looking at Stevens' UNP where he clearly says that the
start_routine (my start()) can return a void pointer, and has
examples with return(NULL).
--
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org
If it aint't broken it hasn't got enough features yet.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il