Consider hibernation before dropping privs
commitb4bd836f46549b6263c8c55eb3bc127884b72340
authorSebastian Hahn <sebastian@torproject.org>
Tue, 11 Oct 2011 00:40:06 +0000 (11 02:40 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 11 Oct 2011 00:42:12 +0000 (11 02:42 +0200)
tree0051d31eb033b5db70c600f5f70ef243bd9e5ae1
parent6a673ad31387928e4309b72204292000a3cd3b83
Consider hibernation before dropping privs

Without this patch, Tor wasn't sure whether it would be hibernating or
not, so it postponed opening listeners until after the privs had been
dropped. This doesn't work so well for low ports. Bug was introduced in
the fix for bug 2003. Fixes bug 4217, reported by Zax and katmagic.
Thanks!
src/or/config.c