Opened 2 years ago

Last modified 2 years ago

#14690 new enhancement

Add support for prctl(PR_SET_PDEATHSIG) or procctl(PROC_PDEATHSIG_CTL)

Reported by: mmu_man Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/Development
Keywords: prctl, procctl, thread Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by mmu_man)

NBDKit tries to use it to get the TERM signal on parent thread death.

prctl is from Linux, procctl is from FreeBSD.

While we do have a notification API that can send THREAD_REMOVED, it's not really handy to use in unixish code, and patches using it would probably be rejected.

Change History (2)

comment:1 by mmu_man, 2 years ago

Description: modified (diff)

comment:2 by mmu_man, 2 years ago

Type: bugenhancement
Note: See TracTickets for help on using tickets.