Re: Bonobo-Activation fun with pipes
- From: Havoc Pennington <hp redhat com>
- To: Maciej Stachowiak <mjs noisehavoc org>
- Cc: Alex Larsson <alexl redhat com>, iain <iain ximian com>, gnome-components-list gnome org
- Subject: Re: Bonobo-Activation fun with pipes
- Date: 24 Aug 2001 18:05:10 -0400
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]