![]() |
|
Message-ID: <aBrbmVUDHQS38gAc@voyager> Date: Wed, 7 May 2025 06:03:37 +0200 From: Markus Wichmann <nullplan@....net> To: musl@...ts.openwall.com Cc: "Zhao, Lihua (CN)" <Lihua.Zhao.CN@...driver.com> Subject: Re: sigtimedwait always retry when receive -EINTR Am Wed, May 07, 2025 at 03:03:15AM +0000 schrieb Zhao, Lihua (CN): > sigtimedwait always retry when receive -EINTR, it conflicts with https://pubs.opengroup.org/onlinepubs/9799919799/ > > [EINTR] > The wait was interrupted by an unblocked, caught signal. It shall be documented in system documentation whether this error causes these functions to fail. > That's a "may fail". musl only implements "may fail" for really compelling reasons. > With above implementation, sigtimedwait will dead loop to wait expected signal. > The SYS_rt_sigtimedwait syscall will succeed if an expected (i.e. specified in mask) signal arrives, not return -EINTR. Ciao, Markus
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.