Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Do you know the Windows shutdown process is implemented? Does it has some criteria to avoid inter-process communication problems between child and parent processes?

This question originated from an suspicious (apparent) coincidence situation on a script terminating successfully and shutdown of the machine [over-described on the original written question replied by Falcon Kirtaran].

share|improve this question

closed as not a real question by Wesley, joeqwerty, EEAA, Sven, Khaled Apr 14 '12 at 7:29

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This question was written on 2am local time, I was tired. Sorry about that. Basically I want to know more about the details of the shutdown process of windows. – jpmartins Apr 14 '12 at 16:26
Re-written the question, now it is a real question. Thanks. – jpmartins Apr 14 '12 at 16:43
up vote 1 down vote accepted

I am not really sure what you are asking. However, if you are interested in why the process appeared to terminate as though it was just about to finish normally, it's because windows first sends a signal to all the running programs as though the user exited them normally (eg. by pressing the X button in the top right of the window). If they do not close within a set period of time, the system will either force-terminate them or give the user the option to do so ("end task").

share|improve this answer
Thanks for the reply. Does windows first signals the child process and then the parent ones? Is there any order or sequence to the termination process, or are the signal sent in parallel from an arbitrary sequence? – jpmartins Apr 14 '12 at 16:25
@jpmartins: Windows does not distinguish between parent and child processes. All processes are considered peers. The shutdown message is not sent in any particular order. – Harry Johnston Apr 14 '12 at 23:47

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