Deadlock involving truss -f, pdfork() and wait4()

Ryan Stone rysto32 at gmail.com
Fri Sep 13 19:04:09 UTC 2019


As Conrad has pointed out, it's an explicit PID.  The test completes
successfully when not run under truss -f.

On Fri, Sep 13, 2019 at 2:37 PM Mark Johnston <markj at freebsd.org> wrote:
>
> On Fri, Sep 13, 2019 at 02:12:56PM -0400, Ryan Stone wrote:
> > This gets me a little further but now the wait4 call by the parent
> > never reaps the child and instead blocks forever:
>
> Does it perform a wildcarded wait(), or does it explicitly specify the
> PID of the child?  By design, the former will not return children
> created by pdfork().


More information about the freebsd-current mailing list