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

From: Conrad Meyer <cem_at_freebsd.org>
Date: Fri, 13 Sep 2019 11:55:49 -0700
On Fri, Sep 13, 2019 at 11:37 AM 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().

Explicit PID:

https://people.freebsd.org/~rstone/pdfork.c

Best,
Conrad
Received on Fri Sep 13 2019 - 16:56:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC