&nbsp;Hi Doug,<br><br>&nbsp;thankx for the quick reply. the errno is set to 4 which when printed using perror is Interrupted system call (EINTR).<br><br>&nbsp;gone through the example. and i am doing just the same...<br><br>&nbsp;thankx in advance
<br><br>regards<br>prem<br>&nbsp;<br><br><br><div><span class="gmail_quote">On 7/24/07, <b class="gmail_sendername">Douglas C. Schmidt</b> &lt;<a href="mailto:schmidt@dre.vanderbilt.edu">schmidt@dre.vanderbilt.edu</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Premkumar,<br><br>&nbsp;&nbsp; Thanks for using the PRF.<br><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ACE VERSION: 5.5.8
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; HOST MACHINE and OPERATING SYSTEM: SunOS 10 X86<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TARGET MACHINE and OPERATING SYSTEM, if different from HOST:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; COMPILER NAME AND VERSION (AND PATCHLEVEL):<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; specific file, simply state which one]:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; use a link to a platform-specific file, simply state which one<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; (unless this isn&#39;t used in this case, 
e.g., with Microsoft Visual<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; C++)]:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; (used by MPC when you generate your own makefiles):<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; AREA/CLASS/EXAMPLE AFFECTED:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; none<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DOES THE PROBLEM AFFECT:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COMPILATION?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LINKING?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXECUTION?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OTHER (please specify)?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Please indicate whether ACE, your application, or both are affected.]<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; SYNOPSIS:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ACE_Process_Manager::spawn returns -1 always<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DESCRIPTION:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ACE_Process_Manager::spawn is returning -1 always even when the process is actually getting spawned<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The process i am trying to start is getting spawned but the call to spawn is always returning ACE_INVALID_PID (-1)
<br><br>What is the errno value?<br><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the same code is working fine in windows. if this is a know issue is there any work around<br><br>There are examples of ACE_Process_Manager in<br><br>ACE_ROOT/tests/Process_Manager_Test.cpp
<br>ACE_ROOT/examples/Threads/process_manager.cpp<br><br>Please try them and see if they work for you.&nbsp;&nbsp;If so, then I recommend<br>you use them as a model for your application.<br><br>thanks,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doug<br></blockquote>
</div><br>