How to query a child process status regularly
问题 I have spawned a child process using Rust's Command API. Now, I need to watch this process for a few seconds before moving on because the process may die early. On success, it should run "forever", so I can't just wait. There's a nightly feature called try_wait which does what I want, but I really don't think I should run Rust nightly just for this! I think I could start a new thread and keep it waiting forever or until the process dies... but I would like to not hang my process with that