summaryrefslogtreecommitdiff
path: root/ace/Signal.cpp
diff options
context:
space:
mode:
authorharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-06 03:03:13 +0000
committerharrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-04-06 03:03:13 +0000
commit65dce9f6057869f0b3745b4728771583cc64eea6 (patch)
treefbc2e86001cb5dd15bff2e840d56ca7429359825 /ace/Signal.cpp
parent22101fa0e9e3e3f1a456b2b7d6abe01eef71dfaf (diff)
downloadATCD-65dce9f6057869f0b3745b4728771583cc64eea6.tar.gz
Took out the #if !defined (ACE_WIN32) statements from Signal.i. Put
in #if !defined (ACE_WIN32) statements to Log_Msg, Reactor, and Signal. Hopefully this will fix the mystery errno=ENOSYS ghost that haunts us lowly WIN32 users.
Diffstat (limited to 'ace/Signal.cpp')
-rw-r--r--ace/Signal.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ace/Signal.cpp b/ace/Signal.cpp
index 2e4ec3d5d78..ad682c2e715 100644
--- a/ace/Signal.cpp
+++ b/ace/Signal.cpp
@@ -77,7 +77,13 @@ ACE_Sig_Action::ACE_Sig_Action (void)
{
ACE_TRACE ("ACE_Sig_Action::ACE_Sig_Action");
this->sa_.sa_flags = 0;
+
+ // Since Service_Config::signal_handler_ is static and has an
+ // ACE_Sig_Action instance, Win32 will get errno set unless this is
+ // commented out.
+#if !defined (ACE_WIN32)
ACE_OS::sigemptyset (&this->sa_.sa_mask);
+#endif /* ACE_WIN32 */
this->sa_.sa_handler = 0;
}