On Wednesday 10 December 2008 17:15:01 Jiří Paleček wrote:
> The problems are of those types:
>
> 1) Calling
>
>      pthread_create(&th, &newattr, (void *)&new_thread, (void *)&newsockfd)
>
>    is wrong if eg. newsockfd is a variable subsequently modified by the
> parent thread.
>
> 2) Calling
>
>      pthread_exit((void *)&exit_val);
>
>    is wrong if exit_val is a local or thread-local variable, incl. errno.

neither of these statements sounds correct.  do you have a reference in the 
POSIX spec that backs up either of these ?
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to