diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-04 21:58:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-04 21:58:09 +0000 |
commit | c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4 (patch) | |
tree | 557afcd448902108efb75ee9ed4408d1408d87fc /src/or/main.c | |
parent | fa2f72ded752689fc0ece225b9d8279ddd13b88d (diff) | |
download | tor-c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4.tar.gz tor-c33dde4ac1dd8ec376d5ee2d5f0544b45b1484e4.zip |
Fix mingw build with --enable-gcc-warnings set.
svn:r16759
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 1d57cff5ed..a91937c7a9 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1868,7 +1868,11 @@ try_locking(or_options_t *options, int err_if_locked) log_warn(LD_GENERAL, "It looks like another Tor process is running " "with the same data directory. Waiting 5 seconds to see " "if it goes away."); +#ifndef WIN32 sleep(5); +#else + Sleep(5000); +#endif r = try_locking(options, 0); if (r<0) { log_err(LD_GENERAL, "No, it's still there. Exiting."); |