https://bugs.freedesktop.org/show_bug.cgi?id=91799

--- Comment #9 from Daniel Stone <[email protected]> ---
(In reply to Alexander von Gluck from comment #1)
> https://ldpreload.com/blog/signalfd-is-useless a pretty good article on
> signalfd.

See the note at the end: 'So my claim that there’s a better alternative to
signalfd is wrong [...]'.

> The solution for this usage is to just spin up a pthread to grab
> signals.

Yeah, introducing threads just delivers a whole series of other problems,
particularly as the pthread API is so fragile and broken. My preferred solution
would be something similar to XCB's libpthread-stubs, where we allow other
platforms to provide an API similar to that of signalfd - an FD to add to our
existing event loop dispatch which notifies us of signals - providing their own
implementation, which could use pthreads.

But going to pthreads makes the lives of a lot of users measurably worse, and
going to #ifdefs makes the lives of most developers measurably worse.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to