On the desktop we should be able to make a platform specific call to get our PID and then pass that in using the __OwningControllerProcess argument to the Tor OP so it will confirm that the PID exists or exit. This is needed to handle a race condition where the parent creates the Tor OP and dies before issuing the TAKEOWNERSHIP command.
If we don't want to go this route then we need to actually implement killZombieProcess which is kind of scary since it requires scraping PS and killing stuff.
On the desktop we should be able to make a platform specific call to get our PID and then pass that in using the __OwningControllerProcess argument to the Tor OP so it will confirm that the PID exists or exit. This is needed to handle a race condition where the parent creates the Tor OP and dies before issuing the TAKEOWNERSHIP command.
If we don't want to go this route then we need to actually implement killZombieProcess which is kind of scary since it requires scraping PS and killing stuff.
The ideal solution however would be for https://trac.torproject.org/projects/tor/ticket/12572 so we need to track that too