I explained this to you yesterday! Is there something you didn't understand?
It seems so. I understood from your explanation (which was about killing a process), that after sending the kill signal, the process still resides in the process table and I can't expect that it disappears immediately. So far no problems.

Here we have a different situation, in that it is not about killing a process: I am going to implement a busy wait for a process to end by itself. When the process finishes, I understand that Windows might still take some time to remove the process from the process table, after it is ended - maybe a few seconds, but certainly not minutes, isn't it? So I thought that sooner or later, after sending a kill 0, the process must have disappeared and kill should return 0 (indicating that "it reaches zero processes").

Maybe I really misunderstood what you explained to me yesterday - could you please point out where my understanding is wrong?

-- 
Ronald Fischer <ynnor@mm.st>

In reply to Re^2: Testing whether a process has finished by rovf
in thread Testing whether a process has finished by rovf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.