diff options
Diffstat (limited to 'examples/APG/Processes')
-rw-r--r-- | examples/APG/Processes/Spawn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/APG/Processes/Spawn.cpp b/examples/APG/Processes/Spawn.cpp index b7b51bde7d2..b3323ccfb8d 100644 --- a/examples/APG/Processes/Spawn.cpp +++ b/examples/APG/Processes/Spawn.cpp @@ -27,7 +27,7 @@ public: // Spawn the new process; prepare() hook is called first. ACE_Process_Options options; pid_t pid = this->spawn (options); - if (pid == ACE_INVALID_PID) + if (pid == -1) ACE_ERROR_RETURN((LM_ERROR, ACE_TEXT ("%p\n"), ACE_TEXT ("spawn")), -1); |