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

Only return 0..255 from main().

I think this may fix some bugs with windows exit codes being screwy.
parent 91ca4344
No related branches found
No related tags found
No related merge requests found
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;
}
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