Completing the pidfd API
Completing the pidfd API
Posted Oct 17, 2024 0:34 UTC (Thu) by jengelh (guest, #33263)In reply to: Completing the pidfd API by bartoc
Parent article: Completing the pidfd API
>one can write "pthread_detach(pthread_self())" to detach yourself, whereas presumably detaching yourself via a pidfd you got from "yourself" would be a no-op
In glibc-nptl, pthread_self and _detach are functions that involve just userspace. There is not going to be a deadlock/deadlock-avoiding-noop as you envisioned.
