Date: Fri, 16 Oct 2020 03:24:49 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 250386] procctl(P_PID, 0, PROC_PDEATHSIG_CTL, &signum) doesn't work on 12.2-STABLE Message-ID: <bug-250386-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250386 Bug ID: 250386 Summary: procctl(P_PID, 0, PROC_PDEATHSIG_CTL, &signum) doesn't work on 12.2-STABLE Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: yuri@freebsd.org In the child process I have these lines: > int signum =3D SIGKILL; > if (::procctl(P_PID, 0, PROC_PDEATHSIG_CTL, &signum) =3D=3D -1) > exit(1); Parent launches this process, it loops, and then the parent exits. The child process stays despite the above lines. I expect it to receive SIGKILL and die once the parent exists, as per procctl(2): > PROC_PDEATHSIG_CTL Request the delivery of a signal when the paren= t of > the calling process exits. idtype must be P_PI= D and > id must be the either caller's pid or zero, wit= h no > difference in effect. The value is cleared for > child processes and when executing set-user-ID = or > set-group-ID binaries. arg must point to a val= ue of > type int indicating the signal that should be > delivered to the caller. Use zero to cancel a > previously requested signal delivery. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250386-7788>