If I have a handle of a process and that process has stopped, Do I need to close the handle?
Can I use the handle to rerun the process?
Can I use the handle to find out information about the process?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Process handles are a Windows concept so as far a Unix and Linux are concerned, there is nothing to close in the first place. The parent process must however properly get the process exit status with waitpid or wait.
When a process has stopped, i.e. is suspended but has not exited, it can be resumed and you can find a lot of information about it.
When it has exited, there is nothing you can do to revive it or to get information about it (outside its exit status if not retrieved by its parent process).