Hi Doug,<br><br> thankx for the quick reply. the errno is set to 4 which when printed using perror is Interrupted system call (EINTR).<br><br> gone through the example. and i am doing just the same...<br><br> thankx in advance
<br><br>regards<br>prem<br> <br><br><br><div><span class="gmail_quote">On 7/24/07, <b class="gmail_sendername">Douglas C. Schmidt</b> <<a href="mailto:schmidt@dre.vanderbilt.edu">schmidt@dre.vanderbilt.edu</a>> 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> Thanks for using the PRF.<br><br>> ACE VERSION: 5.5.8
<br>><br>> HOST MACHINE and OPERATING SYSTEM: SunOS 10 X86<br>><br>> TARGET MACHINE and OPERATING SYSTEM, if different from HOST:<br>> COMPILER NAME AND VERSION (AND PATCHLEVEL):<br>><br>> THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
<br>> specific file, simply state which one]:<br>><br>> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you<br>> use a link to a platform-specific file, simply state which one<br>> (unless this isn't used in this case,
e.g., with Microsoft Visual<br>> C++)]:<br>><br>> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features<br>> (used by MPC when you generate your own makefiles):<br>><br>> AREA/CLASS/EXAMPLE AFFECTED:
<br>> none<br>><br>> DOES THE PROBLEM AFFECT:<br>> COMPILATION?<br>> no<br>><br>> LINKING?<br>> no<br>><br>> EXECUTION?<br>> yes<br>
><br>> OTHER (please specify)?<br>> [Please indicate whether ACE, your application, or both are affected.]<br>><br>> SYNOPSIS:<br>> ACE_Process_Manager::spawn returns -1 always<br>
><br>> DESCRIPTION:<br>> ACE_Process_Manager::spawn is returning -1 always even when the process is actually getting spawned<br>> 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>> 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. If so, then I recommend<br>you use them as a model for your application.<br><br>thanks,<br><br> Doug<br></blockquote>
</div><br>