[ace-users] question on ACE_Process_Manager::spawn

Premkumar P kumaran.prem at gmail.com
Tue Jul 24 08:32:59 CDT 2007


 Hi Doug,

 thankx for the quick reply. the errno is set to 4 which when printed using
perror is Interrupted system call (EINTR).

 gone through the example. and i am doing just the same...

 thankx in advance

regards
prem



On 7/24/07, Douglas C. Schmidt <schmidt at dre.vanderbilt.edu> wrote:
>
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20070724/ac775a6a/attachment-0001.htm


More information about the Ace-users mailing list