News for hackers. Stuff that matters.
Re:Signalfd Is Useless by immibis on Saturday May 25, 2024 @02:58AM (#40473154)
I fail to see how creating a new thread which waits forever and ensuring it is the only one which receives signals (by blocking them in all other threads, which requires unblocking them when starting child processes just like with signals) is any better than signalfd. Also now your program is multithreaded. Good luck.
Re:Signalfd Is Useless by db48x on Saturday May 25, 2024 @01:29PM (#40476466)
The author is/was working on MIO, which is a “cross-platform event-handling library for Rust”. And in Rust, all programs are basically always considered to be multi–threaded. The borrow checker applies consistent rules whether you spawn any additional threads or not, the built–in test runner is multi–threaded even if your program is not, etc, etc.