Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2019 11:55:49 -0700
From:      Conrad Meyer <cem@freebsd.org>
To:        Mark Johnston <markj@freebsd.org>
Cc:        Ryan Stone <rysto32@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Deadlock involving truss -f, pdfork() and wait4()
Message-ID:  <CAG6CVpV03BQfu8f5Tc-bkfASCB_wiR-SNhQpsLLZf=1EHsEJdQ@mail.gmail.com>
In-Reply-To: <20190913183718.GC84156@raichu>
References:  <CAFMmRNwRWZsQhMSY7MwS2kU-qNJ0%2BPk676mi59_Y3QsbcEmPVQ@mail.gmail.com> <CAGOYWV-v1-F3dWQovdj5TZMZeBFifDm020AXnPYdZSHPKLG4SA@mail.gmail.com> <CAFMmRNzhsk-1BO6iyJz7_qtgnRqC%2BfPpYSuQnxEZyno%2BO1K71Q@mail.gmail.com> <20190913183718.GC84156@raichu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 13, 2019 at 11:37 AM Mark Johnston <markj@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpV03BQfu8f5Tc-bkfASCB_wiR-SNhQpsLLZf=1EHsEJdQ>