init: create sockets before forking
There is a race condition with Service::Start and socket creation. Since socket creation currently happens after the fork(), it's possible that init can continue executing other commands before the socket is created. If init starts another service that relies on that socket, it isn't guaranteed to be available. Particularly, we've seen this with hwservicemanager starting after logd, but hwservicemanager's logs sometimes not showing up. Bug: 140810300 Test: boot and logging functions correctly Change-Id: Ib2932e836d345830cd38f3b556598508fd953058
Loading
Please register or sign in to comment