On Monday 21 October 2002 5:43 pm, Lars Gullik Bj�nnes wrote:

> I would use something like
>
> #include <boost/function.hpp>
> #include <boost/bind.hpp>
>
>         boost::function<int(char const *, char * const *)>
>         func(boost::bind(execvp));
>         func(syscmd, argv);
>
> or
>         boost::function2<int, char const *, char * const *>
>         func(boost::bind(execvp));
>         func(syscmd, argv);

I'll try it out.

> untested of course
> ...
>
> but why do you want to do this?

We create zombies at the moment when we autosave because 
we have multiple interfaces checking on the forked processes.

I reasoned that the correct solution was to have ForkedContrl 
control /all/ forked processes.

I believe we can do that with a hierarchy like this

> class ForkedFunction {
>       int startfunction(Starttype, boost::function const & func);
> };
>
> and the current
>
> class Forkedcall {
>       int startscript(Starttype, string const & what);
> };
>
> whould just be a wrapper to ForkedFunction, passing
>       boost::function(system, what)
> to startfunction.

At the moment, I'm just trying to see what works.
Angus

Reply via email to