News for hackers. Stuff that matters.
Re:Tokio and Prctl = Nasty Bug by skissane on Sunday February 23, 2025 @10:47PM (#43155658)
> The setting is retained across forks, as shown in the original article

That’s not what the man page says:

> The parent-death signal setting is cleared for the child of a fork(2).

https://man7.org/linux/man-pages/man2/pr_set_pdeathsig.2cons...

Unless the man page is wrong?

Re:Tokio and Prctl = Nasty Bug by zokier on Monday February 24, 2025 @01:46AM (#43156486)
I wonder if this is difference between libc fork (which calls clone syscall) and kernel fork syscall.
Re:Tokio and Prctl = Nasty Bug by skissane on Monday February 24, 2025 @03:01AM (#43156900)
No, it isn’t. Neither glibc fork nor kernel fork syscall provide any special handling for PDEATHSIG beyond what clone syscall does.
Re:Tokio and Prctl = Nasty Bug by eqvinox on Monday February 24, 2025 @09:45AM (#43160156)
Yeah, I misremembered/misread and didn't check. Bleh.

(The article sets it after forking.)