Subj : How to deal with errno in a multipthread program To : comp.programming.threads From : icoming Date : Fri Apr 15 2005 09:28 am Is it enough to deal with it as follow: int err=errno; func(); //this function may modify the errno errno=err; I read W.Richard Stevens's UNIX Network Programming, it uses this way, but I do not think it's enough, but do not know there is better one. .