"Sanjay Patro , Gurgaon" wrote:
> I am using pth 1.4.0 on Sco openserver 5.0.4 .pth_init() and
> pth_spwan returns error number 4 which is EINTR.I have no clue why this is
> happening.I am including my sample program .
> I would highly appreciate any confirmation or explanation about
> this.
> if ((hThread=pth_spawn(PTH_ATTR_DEFAULT, clientThread, 0)) != 0)
> {
> perror("pth_spawn returned");
> exit(1);
> }
Try "== NULL" instead of "!= 0" there (see man page for details).
In general, EINTR is what errno is by "default" when using pth, so
often you see this error code as sortof the pth equivalent of
"Error 0: no error", i.e., you are looking at "errno" when there was
no actual error.
-Archie
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager (Majordomo) [EMAIL PROTECTED]