summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-26 06:37:50 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-06-26 06:37:50 +0000
commit2ede8a66bed5aca2958e12c6223d9b7c7d78e16f (patch)
tree4e859eb55edd569c619071a8cf1463d8fe4c5ff0
parent287e8b330b424dd414ae5a76c277eacab4da7bd9 (diff)
downloadATCD-2ede8a66bed5aca2958e12c6223d9b7c7d78e16f.tar.gz
*** empty log message ***
-rw-r--r--ChangeLog-97a5
-rw-r--r--ace/DEV.h5
-rw-r--r--ace/DEV.i11
-rw-r--r--ace/FILE.h5
-rw-r--r--ace/FILE.i10
5 files changed, 35 insertions, 1 deletions
diff --git a/ChangeLog-97a b/ChangeLog-97a
index 68d4069e6af..061490b0d58 100644
--- a/ChangeLog-97a
+++ b/ChangeLog-97a
@@ -1,3 +1,8 @@
+Thu Jun 26 01:34:46 1997 Nanbor Wang <nw1@lambada.cs.wustl.edu>
+
+ * ace/{FILE,DEV}.{h,i}: Added the disable(int signum) function to
+ prevent NT from disabling a FILE/DEV using socket calls.
+
Wed Jun 25 12:59:00 1997 <irfan@TWOSTEP>
* ace/Synch_T.h (ACE_SYNCH_PROCESS_MUTEX and
diff --git a/ace/DEV.h b/ace/DEV.h
index 4d4cdd0ace8..056a2de0dd7 100644
--- a/ace/DEV.h
+++ b/ace/DEV.h
@@ -58,6 +58,11 @@ public:
// Return the address of the remotely connected peer (if there is
// one).
+ int disable (int signum) const ;
+ // Disable signal <signum>
+ // This is here to prevent Win32 from
+ // disabling SPIPE using socket calls
+
protected:
ACE_DEV (void);
// Ensure that this class is an abstract base class
diff --git a/ace/DEV.i b/ace/DEV.i
index 86d5e6b511d..8b01156e51c 100644
--- a/ace/DEV.i
+++ b/ace/DEV.i
@@ -3,4 +3,13 @@
// DEV.i
-
+inline int
+ACE_DEV::disable (int signum) const
+{
+#if defined (ACE_WIN32)
+ ACE_UNUSED_ARG (signum) ;
+ return 0 ;
+#else /* ACE_WIN32 */
+ return ACE_IO_SAP::disable (signum) ;
+#endif /* ACE_WIN32 */
+}
diff --git a/ace/FILE.h b/ace/FILE.h
index 3ef2cf27fc4..8558a6ec5ff 100644
--- a/ace/FILE.h
+++ b/ace/FILE.h
@@ -70,6 +70,11 @@ public:
void dump (void) const;
// Dump the state of an object.
+ int disable (int signum) const ;
+ // Disable signal <signum>
+ // This is here to prevent Win32 from
+ // disabling SPIPE using socket calls
+
ACE_ALLOC_HOOK_DECLARE;
// Declare the dynamic allocation hooks.
diff --git a/ace/FILE.i b/ace/FILE.i
index 961d2bdc766..0a916f0f0d0 100644
--- a/ace/FILE.i
+++ b/ace/FILE.i
@@ -3,4 +3,14 @@
// FILE.i
+inline int
+ACE_FILE::disable (int signum) const
+{
+#if defined (ACE_WIN32)
+ ACE_UNUSED_ARG (signum) ;
+ return 0 ;
+#else /* ACE_WIN32 */
+ return ACE_IO_SAP::disable (signum) ;
+#endif /* ACE_WIN32 */
+}