mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
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.
This commit is contained in:
parent
9bafc3b1ef
commit
c247a2df6b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue