[ace-users] question on ACE_Process_Manager::spawn

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Tue Jul 24 08:03:47 CDT 2007


Hi Premkumar,

   Thanks for using the PRF.

>     ACE VERSION: 5.5.8
> 
>     HOST MACHINE and OPERATING SYSTEM: SunOS 10 X86
> 
>     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>     COMPILER NAME AND VERSION (AND PATCHLEVEL):
> 
>     THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
>     specific file, simply state which one]:
> 
>     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
>     use a link to a platform-specific file, simply state which one
>     (unless this isn't used in this case, e.g., with Microsoft Visual
>     C++)]:
> 
>     CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>     (used by MPC when you generate your own makefiles):
> 
>     AREA/CLASS/EXAMPLE AFFECTED:
>     none
> 
>     DOES THE PROBLEM AFFECT:
>         COMPILATION?
>         no
> 
>         LINKING?
>         no
> 
>         EXECUTION?
>         yes
> 
>         OTHER (please specify)?
>        [Please indicate whether ACE, your application, or both are affected.]
> 
>     SYNOPSIS:
>     ACE_Process_Manager::spawn returns -1 always
> 
>     DESCRIPTION:
>     ACE_Process_Manager::spawn is returning -1 always even when the process is actually getting spawned
>     The process i am trying to start is getting spawned but the call to spawn is always returning ACE_INVALID_PID (-1)

What is the errno value?

>     the same code is working fine in windows. if this is a know issue is there any work around

There are examples of ACE_Process_Manager in 

ACE_ROOT/tests/Process_Manager_Test.cpp
ACE_ROOT/examples/Threads/process_manager.cpp

Please try them and see if they work for you.  If so, then I recommend
you use them as a model for your application.

thanks,

        Doug



More information about the Ace-users mailing list