[MPICH] Semaphores Discussion Forum

William Gropp gropp at mcs.anl.gov
Mon May 7 11:08:54 CDT 2007


Most Unix system calls will return this error.  Typically, you need  
something like

do {
     err = systemcall(...);
} while (err == -1 && errno == EINTR);

There are times when you may want to do something else after a signal  
handler operates, but this code is what is usually required.

Bill

On May 4, 2007, at 6:43 PM, Manal Helal wrote:

> Hi
>
> I know this is irrelevant to MPI, but I use besides MPI, threads  
> and synchronize with semaphore and have an error "The call was  
> interrupted by a signal handler." on a sem_wait
>
> Do you know a forum that I can discuss this problem with?
>
> I appreciate your help,
>
> Kind Regards,
>
> Manal




More information about the mpich-discuss mailing list