mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
Only return 0..255 from main().
I think this may fix some bugs with windows exit codes being screwy.
This commit is contained in:
parent
91ca434451
commit
e73206f681
2 changed files with 8 additions and 1 deletions
3
changes/normalize_exit
Normal file
3
changes/normalize_exit
Normal file
|
@ -0,0 +1,3 @@
|
|||
o Minor features:
|
||||
- Try harder to normalize the exit status of the Tor process to the
|
||||
standard-provided range.
|
|
@ -27,6 +27,10 @@ int tor_main(int argc, char *argv[]);
|
|||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
return tor_main(argc, argv);
|
||||
int r = tor_main(argc, argv);
|
||||
if (r < 0 || r > 255)
|
||||
return 1;
|
||||
else
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue