Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
75684a48
Commit
75684a48
authored
20 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
<arma> did you get it working on win32? or just compiling
svn:r2136
parent
78f12ffc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/main.c
+6
-5
6 additions, 5 deletions
src/or/main.c
with
6 additions
and
5 deletions
src/or/main.c
+
6
−
5
View file @
75684a48
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment