diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-08-04 04:58:30 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-08-04 04:58:30 +0000 |
commit | 75684a48d53df1a82081ee2455509c05ee3d0d7e (patch) | |
tree | 3c0d7a4000dda5a01f2f7366e94a1e48cb77ea8a /src | |
parent | 78f12ffccaa27af6ed936fb5bb7e81e7b783e658 (diff) | |
download | tor-75684a48d53df1a82081ee2455509c05ee3d0d7e.tar.gz tor-75684a48d53df1a82081ee2455509c05ee3d0d7e.zip |
<arma> did you get it working on win32? or just compiling
svn:r2136
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/main.c b/src/or/main.c index 67188167e5..5e27f00721 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -63,7 +63,7 @@ int has_fetched_directory=0; * entry to inform the user that Tor is working. */ int has_completed_circuit=0; -#ifdef MS_WINDOWS +#ifdef MS_WINDOWS_SERVICE SERVICE_STATUS service_status; SERVICE_STATUS_HANDLE hStatus; #endif @@ -810,11 +810,12 @@ static int do_main_loop(void) { } for(;;) { -#ifdef MS_WINDOWS /* Do service stuff only on windows. */ - if (service_status.dwCurrentState != SERVICE_RUNNING) { +#ifdef MS_WINDOWS_SERVICE /* Do service stuff only on windows. */ + if (service_status.dwCurrentState != SERVICE_RUNNING) { return 0; } -#else /* do signal stuff only on unix */ +#endif +#ifndef MS_WINDOWS /* do signal stuff only on unix */ if(please_shutdown) { if(!server_mode()) { /* do it now */ log(LOG_NOTICE,"Interrupt: exiting cleanly."); @@ -1058,7 +1059,7 @@ void tor_cleanup(void) { crypto_global_cleanup(); } -#ifdef MS_WINDOWS +#ifdef MS_WINDOWS_SERVICE void nt_service_control(DWORD request) { switch (request) { |