Drop privileges after opennning port
Dropping privileges is a nice function and mostly usefull when you want to run service on ports that you can't open as normal user. So it would make sense to fisrst open the port to listen on and drop privileges only after that.
https://gitlab.nic.cz/turris/sentinel/minipot/-/blob/master/child.c#L104