Skip to content
Snippets Groups Projects
Commit c247a2df authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

On locking failure, return -1 instead of exit()ing.

This is safe, since the only caller (options_act) will check the
return value, and propagate failure.
parent 9bafc3b1
No related branches found
No related tags found
No related merge requests found
......@@ -3265,7 +3265,7 @@ try_locking(const or_options_t *options, int err_if_locked)
r = try_locking(options, 0);
if (r<0) {
log_err(LD_GENERAL, "No, it's still there. Exiting.");
exit(1); // XXXX bad exit
return -1;
}
return r;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment