True if an asynchronous or interactive shell process is running.
This example checks whether the shell is running before trying to use it.