29e Subj : Re: How to deal with errno in a multipthread program To : comp.programming.threads From : John Hickin Date : Fri Apr 15 2005 03:54 pm "Eric Sosman" wrote in message news:d3ou9g$k5i$1@news1brm.Central.Sun.COM... > > The decision to preserve errno or not has nothing to > do with whether the program is single- or multi-threaded; > it's a matter of the "contract" between the function > and its callers. > Except that there is the issue of what to do in signal handlers. Generally I would save/restore errno in my handler even if this breaks a standard which says you can read it or write it but not do both. . 0