In ntmain, call set_main_thread() before running the loop.
commit3e68db02c45ea06c3f20854df1f76894424d4357
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Aug 2017 13:07:28 +0000 (3 09:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 3 Aug 2017 13:09:08 +0000 (3 09:09 -0400)
treed48726d92b4a031c7bc810cb5da53f7a2d90cb02
parent1280de42a41ccf7ae398cc86529c880455e9c5d1
In ntmain, call set_main_thread() before running the loop.

Patch from Vort; fixes bug 23081; bugfix on fd992deeea76972 in
0.2.1.16-rc when set_main_thread() was introduced.

See the changes file for a list of all the symptoms this bug has
been causing when running Tor as a Windows Service.
changes/bug23081 [new file with mode: 0644]
src/or/ntmain.c