fok() execve() -> No child processes

Peter Pentchev roam at ringlet.net
Fri Sep 9 04:24:55 PDT 2005


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().
> 
> 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.
> 
> is it possible... What can i do for that?
[snip]
>                 default:
>                         if (wait(&stat) == -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

-- 
Peter Pentchev	roam at ringlet.net    roam at cnsys.bg    roam at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050909/8b996072/attachment.bin


More information about the freebsd-hackers mailing list