webmynd/build-tools — Issue #35: wm-run ios sometimes finds an incorrect pid for the simulated app
Author: itsmonktastic
Created: 2011-12-09 15:30:17+00:00
State: open

wm-run ios currently scrapes the pid for the iPhone app being simulated in order to kill it on the python process being killed.

Occasionally this goes wrong and it gets the wrong pid, so it fails to kill the simulated app, which keeps running (and causes the iPhone simulator to be sad on next startup).

The way it does this currently is to look for direct children of the iPhone simulator by scraping the output of `ps`. Might be that there are multiple children and it's finding the wrong one.