[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Forward-port fix to make dual-purpose NT executable work.
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv14149
Modified Files:
main.c
Log Message:
Forward-port fix to make dual-purpose NT executable work.
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.449
retrieving revision 1.450
diff -u -d -r1.449 -r1.450
--- main.c 22 Feb 2005 23:52:44 -0000 1.449
+++ main.c 23 Feb 2005 05:34:25 -0000 1.450
@@ -1645,11 +1645,14 @@
nt_service_main();
return 0;
}
-#else
+#endif
if (tor_init(argc, argv)<0)
return -1;
switch (get_options()->command) {
case CMD_RUN_TOR:
+#ifdef MS_WINDOWS_SERVICE
+ service_status.dwCurrentState = SERVICE_RUNNING;
+#endif
do_main_loop();
break;
case CMD_LIST_FINGERPRINT:
@@ -1664,6 +1667,5 @@
}
tor_cleanup();
return -1;
-#endif
}