How do you start the program and how to you check the state?

Using startDetached() and a low-level OS function to check the state?
Or start() and using some low-level OS function to detach?

Cheers,
_