mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Robust mutex returning ESRCH
@ 2020-09-29 16:31 Leonid Shamis
  2020-09-29 18:48 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Leonid Shamis @ 2020-09-29 16:31 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 426 bytes --]

We had a bug in our code where a dying process released shared memory
(munmap) prior to exit. The process held ownership of a robust mutex within
the shared memory, and because the address was unmapped, the robust_list
wasn't able to set the appropriate flags.

The next attempt to lock the mutex, in another process, returned ESRCH.

Should ESRCH be caughtand converted to either a recoverable EOWNERDEAD or
ENOTRECOVERABLE?

[-- Attachment #2: Type: text/html, Size: 475 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-29 19:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 16:31 [musl] Robust mutex returning ESRCH Leonid Shamis
2020-09-29 18:48 ` Rich Felker
2020-09-29 19:02   ` Leonid Shamis
2020-09-29 19:28     ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).