summaryrefslogtreecommitdiff
path: root/examples/OS
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-13 08:09:49 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-13 08:09:49 +0000
commit6dcf6f32deb65edd6505a864a24c378c29d76208 (patch)
tree3e155b62ba1ddc447c96b6b87f19c134588ec529 /examples/OS
parentddaf45161124351d05e999a35068b83dc816ed51 (diff)
downloadATCD-6dcf6f32deb65edd6505a864a24c378c29d76208.tar.gz
*** empty log message ***
Diffstat (limited to 'examples/OS')
-rw-r--r--examples/OS/Process/process.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/OS/Process/process.cpp b/examples/OS/Process/process.cpp
index 6f85befc6c2..2e4c94518ff 100644
--- a/examples/OS/Process/process.cpp
+++ b/examples/OS/Process/process.cpp
@@ -110,12 +110,12 @@ test_more (void)
return;
}
- ACE_ProcessEx new_process;
+ ACE_Process new_process;
ACE_Process_Options options;
options.command_line (executable);
options.set_handles (infile);
- if (new_process.start (options) == -1)
+ if (new_process.spawn (options) == -1)
{
int error = ACE_OS::last_error ();
ACE_ERROR ((LM_ERROR, "%p errno = %d.\n",
@@ -136,8 +136,8 @@ test_date (void)
options.command_line (DATE_PATH);
// Try to create a new process running date.
- ACE_ProcessEx new_process;
- if (new_process.start (options) == -1)
+ ACE_Process new_process;
+ if (new_process.spawn (options) == -1)
{
int error = ACE_OS::last_error ();
ACE_ERROR ((LM_ERROR, "%p errno = %d.\n",
@@ -155,8 +155,8 @@ test_ls (void)
ACE_Process_Options options;
options.command_line ("%s -al", LS_PATH);
- ACE_ProcessEx new_process;
- if (new_process.start (options) == -1)
+ ACE_Process new_process;
+ if (new_process.spawn (options) == -1)
{
int error = ACE_OS::last_error ();
ACE_ERROR ((LM_ERROR, "%p errno = %d.\n",
@@ -323,8 +323,8 @@ test_setenv (const char *argv0)
options.setenv ("ACE_PROCESS_TEST= here's a large number %u", 0 - 1);
options.setenv ("ACE_PROCESS_TEST2", "ophilli");
options.command_line ("%s -g", argv0);
- ACE_ProcessEx process;
- if (process.start (options) == -1)
+ ACE_Process process;
+ if (process.spawn (options) == -1)
{
ACE_ERROR ((LM_ERROR, "%p.\n", "test_setenv"));
return;
@@ -371,8 +371,8 @@ main (int argc, char *argv[])
{
ACE_Process_Options options;
options.command_line ("%s -d -l -s", argv[0]);
- ACE_ProcessEx process;
- if (process.start (options) == -1)
+ ACE_Process process;
+ if (process.spawn (options) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p.\n", "main"), -1);
process.wait ();
}