apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: exec a process.
Date Wed, 11 Mar 2009 16:16:20 GMT
On Wed, Mar 11, 2009 at 12:08 PM, Stephen Ince <since@opendemand.com> wrote:
> Is there a portable way to exec a file within the apr?
> I noticed that apr_proc_fork is not portable.
> I basically want to do the following.
>
> #setup stdin and stdout.
> exec("/my file") in a separate process.
> #wait for the process.


apr_procattr_* is available:

http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_thread_proc.h?view=co
http://svn.apache.org/viewvc/apr/apr/trunk/test/testproc.c?view=co


-- 
Eric Covener
covener@gmail.com

Mime
View raw message