[tor-commits] [tor/master] Disable run-time changes to DisableIOCP:	They do not work
    nickm at torproject.org 
    nickm at torproject.org
       
    Fri Aug 19 21:07:29 UTC 2011
    
    
  
commit dd6a9a923d8bda5363c50d5ea7fd8ea403e895cd
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Aug 19 17:07:54 2011 -0400
    Disable run-time changes to DisableIOCP: They do not work
---
 src/or/config.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/or/config.c b/src/or/config.c
index 716d83a..dbc355d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3966,6 +3966,12 @@ options_transition_allowed(const or_options_t *old,
     return -1;
   }
 
+  if (old->DisableIOCP != new_val->DisableIOCP) {
+    *msg = tor_strdup("While Tor is running, changing DisableIOCP "
+                      "is not allowed.");
+    return -1;
+  }
+
   return 0;
 }
 
    
    
More information about the tor-commits
mailing list