0

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?

  • For this question it would be nice to have some more context, like the programming environment even better your source code. – silvio Jan 31 '16 at 10:16
  • Language: C , OS: linux. The question is theoretic – Lee Jan 31 '16 at 10:20
2

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.