Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2011 12:45:37 +0100
From:      Julien Laffaye <jlaffaye@freebsd.org>
To:        Buganini <buganini@gmail.com>
Cc:        freebsd-hackers@freebsd.org, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: [RFC] rcexecr: rcorder in parallel
Message-ID:  <BANLkTi=S2EBo_ajo2q1Bc4DSmpwatRtXNw@mail.gmail.com>
In-Reply-To: <BANLkTin3gUFt9erp88HMfingZTG0wdzVog@mail.gmail.com>
References:  <BANLkTin3gUFt9erp88HMfingZTG0wdzVog@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 4, 2011 at 10:10 AM, Buganini <buganini@gmail.com> wrote:
> https://github.com/buganini/rcexecr
>
> Currently it is able to determine the exec/wait order
>
> There are something I haven't digged in deeply in the "self modification" part.
>
> patches/ideas are welcome.

Hello,

Thanks for doing that!

You should use kqueue(2) instead of waitpid(2) so that you can
efficiently monitor a pool of processes.
See pwait(1) for an example.

Regards,
Julien



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=S2EBo_ajo2q1Bc4DSmpwatRtXNw>