Re: Bonobo-Activation fun with pipes



Maciej Stachowiak <mjs noisehavoc org> writes: 
> Does g_spawn let you set up pipes to or from the child process on
> arbitrary file descriptors?

The builtin pipes support uses stdout/stdin/stderr on the child side
and one end of the pipe from pipe() on the parent side.

But nothing is stopping you from doing your own pipes stuff. There's a
ChildSetupFunc to run arbitrary code right before the exec if
necessary.

However my reading of oaf_server_by_forking() is that it's just using
the standard pipe()-and-dup2(pipe[1],1) pipe that g_spawn can do for
you.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]