Opened 3 years ago

Last modified 3 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 Changed 3 years ago by Andrey Semashev

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