[Mono-bugs] [Bug 668867] New: Processes needs to be waited for to not turn into zombies

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 2 07:03:33 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=668867

https://bugzilla.novell.com/show_bug.cgi?id=668867#c0


           Summary: Processes needs to be waited for to not turn into
                    zombies
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Repro:

using System;
using System.Diagnostics;
class Zombie {
  static void Main () {
    Process.Start ("sleep", "1").Dispose ();
      Thread.Sleep (1000000);
      // now check using ps that the sleep process is a zombie process.
    }
}

This works:

using System;
using System.Diagnostics;
class Zombie {
  static void Main () {
    Process.Start ("sleep", "1").WaitForExit (1);
      Thread.Sleep (1000000);
      // now check using ps that the sleep process is a zombie process.
    }
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list