Yo, I’ve been there with Python run app in process. It’s a headache, right?
I’d say stick with `subprocess` for external apps, but make sure to handle `stdout`/`stderr` properly. Otherwise, you’ll get deadlocks.
For cleanup, `atexit` is a lifesaver. And yeah, `multiprocessing` is great, but it can get messy with shared state.
Good luck, and don’t forget to check out `psutil` for process management!
I’d say stick with `subprocess` for external apps, but make sure to handle `stdout`/`stderr` properly. Otherwise, you’ll get deadlocks.
For cleanup, `atexit` is a lifesaver. And yeah, `multiprocessing` is great, but it can get messy with shared state.
Good luck, and don’t forget to check out `psutil` for process management!
