Permalink
Browse files

allow CTRL-C.

  • Loading branch information...
mattn committed Feb 9, 2012
1 parent d0def3f commit 1944b0effe726138cddbfa2b008494296eecbbb8
Showing with 2 additions and 0 deletions.
  1. +2 −0 static/mkdpreview.py
View
@@ -5,6 +5,7 @@
import json
import cgi
import imp
+import signal
from threading import Thread
from PyQt4.QtCore import *
from PyQt4.QtGui import *
@@ -16,6 +17,7 @@
plugins = {}
os.chdir(os.path.dirname(__file__))
+signal.signal(signal.SIGINT, signal.SIG_DFL)
port = int(os.getenv("mkdpreview_port") or "8081")

0 comments on commit 1944b0e

Please sign in to comment.