[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: threads question



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