I’m using popen()
to create potentially long-running processes in Python. If the parent program dies and then restarts, is there a way to retrieve the previously created processes that are still running? I’d probably have to use start_new_session=True
, which I’m not doing now.
Essentially, I want to get a re-constructed instance of a popen
object that points to the child process. I suspect it’s not possible, since serializing a popen()
object doesn’t seem to be possible.