Opened 8 years ago

Last modified 8 years ago

#11172 new Bugs

Posix semaphores wait/timed_wait under linux and EINTR return code

Reported by: poroh1981@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc: Andrey.Semashev@…

Description

Semaphore's wait/timed_wait methods throws exception if EINTR is returned by sem_wait/sem_timedwait. This code could be returned if wait is interrupted by signal handler (in agree with POSIX.1-2001).

It looks like EINTR handling should be kept inside that functions.

Change History (1)

comment:1 by Andrey Semashev, 8 years ago

Cc: Andrey.Semashev@… added
Note: See TracTickets for help on using tickets.