diff options
Diffstat (limited to 'examples/APG')
-rw-r--r-- | examples/APG/Processes/Spawn.cpp | 2 | ||||
-rw-r--r-- | examples/APG/Signals/SigAction.cpp | 5 |
2 files changed, 2 insertions, 5 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); diff --git a/examples/APG/Signals/SigAction.cpp b/examples/APG/Signals/SigAction.cpp index b9d96c6b702..ccb484f7478 100644 --- a/examples/APG/Signals/SigAction.cpp +++ b/examples/APG/Signals/SigAction.cpp @@ -33,7 +33,7 @@ int ACE_TMAIN (int, ACE_TCHAR *[]) } // Listing 1 #if defined (ACE_HAS_SIG_C_FUNC) -extern "C" { +extern "C" #endif // Listing 3 code/ch11 static void my_sighandler (int signo) @@ -49,9 +49,6 @@ static void my_sighandler (int signo) ACE_OS::sleep (10); } -#if defined (ACE_HAS_SIG_C_FUNC) -} -#endif // Listing 3 // Listing 2 code/ch11 static void register_actions () |