diff options
author | sma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-11-06 14:32:53 +0000 |
---|---|---|
committer | sma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-11-06 14:32:53 +0000 |
commit | 3eec3eefaa807c3dd3a3d01454fb2f22cecebdb9 (patch) | |
tree | 7864a1df54dc3c81601e119d6a8a059c81b7bff1 /ACE/tests/Process_Test.cpp | |
parent | 09250ce676afb349494cedef425da66f27c72392 (diff) | |
download | ATCD-3eec3eefaa807c3dd3a3d01454fb2f22cecebdb9.tar.gz |
ChangeLogTag: Thu Nov 6 14:33:00 UTC 2008 Simon Massey <sma at prismtech dot com>
Diffstat (limited to 'ACE/tests/Process_Test.cpp')
-rw-r--r-- | ACE/tests/Process_Test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/tests/Process_Test.cpp b/ACE/tests/Process_Test.cpp index d6bee932fff..dcff68f7525 100644 --- a/ACE/tests/Process_Test.cpp +++ b/ACE/tests/Process_Test.cpp @@ -91,8 +91,8 @@ run_parent (bool inherit_files) ACE_OS::strcat (tempfile, t); - int result = ACE_OS::mkstemp (tempfile); - if (result == -1) + ACE_HANDLE file_handle = ACE_OS::mkstemp (tempfile); + if (file_handle == ACE_INVALID_HANDLE) ACE_ERROR ((LM_ERROR, ACE_TEXT ("Could not get temp filename\n"))); // Build child options @@ -108,7 +108,7 @@ run_parent (bool inherit_files) // Spawn child ACE_Process child; - result = child.spawn (options); + pid_t result = child.spawn (options); if (result != -1) ACE_ERROR ((LM_ERROR, ACE_TEXT ("Parent could NOT spawn child process\n"))); else |