From 30839505561411218fe35971e123b3faf5c64c0d 2012-06-25 01:17:41
From: Fernando Perez <fernando.perez@berkeley.edu>
Date: 2012-06-25 01:17:41
Subject: [PATCH] Merge pull request #2031 from minrk/confirm

disable ^C^C confirmation on Windows since it uses select.select on stdin, which is illegal on Windows.
---

diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py
index c957c7d..7073ed9 100644
--- a/IPython/frontend/html/notebook/notebookapp.py
+++ b/IPython/frontend/html/notebook/notebookapp.py
@@ -470,7 +470,7 @@ class NotebookApp(BaseIPythonApplication):
             if 'dev' in zmq.__version__:
                 zmq_v.append(999)
             zmq_v = tuple(zmq_v)
-        if zmq_v >= (2,1,9):
+        if zmq_v >= (2,1,9) and not sys.platform.startswith('win'):
             # This won't work with 2.1.7 and
             # 2.1.9-10 will log ugly 'Interrupted system call' messages,
             # but it will work
@@ -496,6 +496,8 @@ class NotebookApp(BaseIPythonApplication):
         
         A second ^C, or answering 'y' within 5s will cause shutdown,
         otherwise original SIGINT handler will be restored.
+        
+        This doesn't work on Windows.
         """
         # FIXME: remove this delay when pyzmq dependency is >= 2.1.11
         time.sleep(0.1)