Re: select failed: Interrupted system call

2006-12-29 Thread Václav Haisman


andy wang wrote, On 25.12.2006 23:12:
> Hi, All:
> 
> What's the reason can cause interrupted system call. the same program
> will not be interrupted  running at linux. I know a singal can, Is
> there anything else can? Is there possible that pthread_cond_signal
> will do the same thing too?
> 
> Regards,
> Andy
> 
Any delivered signal can interrupt interruptable system call, IIRC. You
should check for the condition and handle it. If it is some particular signal
that is interrupting the call then you could use SA_RESTART flag.

--
wilx





signature.asc
Description: OpenPGP digital signature


select failed: Interrupted system call

2006-12-25 Thread andy wang

Hi, All:

What's the reason can cause interrupted system call. the same program
will not be interrupted  running at linux. I know a singal can, Is
there anything else can? Is there possible that pthread_cond_signal
will do the same thing too?

Regards,
Andy

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/