Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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?



I wonder if this is difference between libc fork (which calls clone syscall) and kernel fork syscall.


No, it isn’t. Neither glibc fork nor kernel fork syscall provide any special handling for PDEATHSIG beyond what clone syscall does.


Yeah, I misremembered/misread and didn't check. Bleh.

(The article sets it after forking.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: