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
54c432bd
Commit
54c432bd
authored
20 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
pay attention to the return value of do_hup, and exit
when it fails svn:r2577
parent
9cc0c362
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
+7
-5
7 additions, 5 deletions
src/or/main.c
with
7 additions
and
5 deletions
src/or/main.c
+
7
−
5
View file @
54c432bd
...
...
@@ -737,14 +737,12 @@ static int do_hup(void) {
/* first, reload config variables, in case they've changed */
/* no need to provide argc/v, they've been cached inside init_from_config */
if
(
init_from_config
(
0
,
NULL
)
<
0
)
{
tor_cleanup
();
exit
(
1
);
return
-
1
;
}
/* reload keys as needed for rendezvous services. */
if
(
rend_service_load_keys
()
<
0
)
{
log_fn
(
LOG_ERR
,
"Error reloading rendezvous service keys"
);
tor_cleanup
();
exit
(
1
);
return
-
1
;
}
if
(
retry_all_listeners
()
<
0
)
{
log_fn
(
LOG_ERR
,
"Failed to bind one of the listener ports."
);
...
...
@@ -848,7 +846,11 @@ static int do_main_loop(void) {
please_dumpstats
=
0
;
}
if
(
please_reset
)
{
do_hup
();
if
(
do_hup
()
<
0
)
{
log_fn
(
LOG_WARN
,
"Restart failed (config error?). Exiting."
);
tor_cleanup
();
exit
(
1
);
}
please_reset
=
0
;
}
if
(
please_reap_children
)
{
...
...
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