Index: remoting/tools/me2me_virtual_host.py |
diff --git a/remoting/tools/me2me_virtual_host.py b/remoting/tools/me2me_virtual_host.py |
index e6fa6bbcd71fc1ba66dfce667950b4db3d914a93..c4e173a22feb5bbfd8339963293fbadc6bd0ea04 100755 |
--- a/remoting/tools/me2me_virtual_host.py |
+++ b/remoting/tools/me2me_virtual_host.py |
@@ -581,8 +581,9 @@ def main(): |
atexit.register(cleanup) |
- for s in [signal.SIGHUP, signal.SIGINT, signal.SIGTERM, signal.SIGUSR1]: |
- signal.signal(s, signal_handler) |
+ if os.name == 'posix': |
+ for s in [signal.SIGHUP, signal.SIGINT, signal.SIGTERM, signal.SIGUSR1]: |
+ signal.signal(s, signal_handler) |
Wez
2012/03/01 18:03:06
We won't be using this script on Windows & Mac, th
alexeypa (please no reviews)
2012/03/01 20:33:58
I guess so. It was an easy way to get me2me config
Wez
2012/03/01 21:11:36
There is a separate register_host.py script for re
Lambros
2012/03/01 21:15:41
This script is almost entirely Linux-specific. I
|
# Ensure full path to config directory exists. |
if not os.path.exists(CONFIG_DIR): |