Subject: Re: waitpid(2) oddity
To: None <current-users@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: current-users
Date: 11/27/2007 20:16:37
On Tue, Nov 27, 2007 at 01:07:29PM -0600, David Young wrote:
>         if (waitpid(hsw->hsw_pid, &status, WNOHANG) == -1) {
>                 loglib_warn("%s: waitpid", __func__);

You don't handle waitpid() == 0 here, right? Otherwise status can be
left uninitialised.

Joerg