Date: Fri, 9 Sep 2005 14:24:52 +0300 From: Peter Pentchev <roam@ringlet.net> To: erkan kolemen <erkankolemen@yahoo.com> Cc: freebsd-hackers@freebsd.org Subject: Re: fok() execve() -> No child processes Message-ID: <20050909112452.GB15059@straylight.m.ringlet.net> In-Reply-To: <20050908194020.21635.qmail@web33415.mail.mud.yahoo.com> References: <20050908194020.21635.qmail@web33415.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Sep 08, 2005 at 12:40:20PM -0700, erkan kolemen wrote:
> Following code fails. I debugged it and saw that: it
> produces "No child processes" error while wait().
>=20
> is it possible, parent still is not start to wait but
> child finished. After that CPU schedules parents. It
> try to start wait but child has finished.
>=20
> is it possible... What can i do for that?
[snip]
> default:
> if (wait(&stat) =3D=3D -1) {
> slog(1, LOG_ERR);
> return -14;
> }
Just an idea: what happens if you try waitpid(pid, &stat, 0) instead
of wait(&stat)?
G'luck,
Peter
--=20
Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
I've heard that this sentence is a rumor.
--Bn2rw/3z4jIqBvZU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFDIXEE7Ri2jRYZRVMRAqrSAJ9cot5I5Jk7RXcgf4QFJGO411LnZQCeLVlT
xYxBHv/Z5+EDbXsRsJdEVUs=
=Vh1f
-----END PGP SIGNATURE-----
--Bn2rw/3z4jIqBvZU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050909112452.GB15059>
