]> git.llucax.com Git - software/pymin.git/commitdiff
Bugfix: use correct module for simbol ECHILD.
authorLeandro Lucarella <llucax@gmail.com>
Tue, 13 Nov 2007 18:24:17 +0000 (15:24 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Tue, 13 Nov 2007 18:24:17 +0000 (15:24 -0300)
pymin/procman.py

index b89b7e63d6eeac0e5583904e85c30a0acf1c6f71..ab6953a084a885ce9c05c355e553ac997eb63b0c 100644 (file)
@@ -95,7 +95,7 @@ class ProcessManager:
         try:
             (pid, status) = os.waitpid(-1, os.WNOHANG)
         except OSError, e:
         try:
             (pid, status) = os.waitpid(-1, os.WNOHANG)
         except OSError, e:
-            if e.errno is e.ECHILD:
+            if e.errno is errno.ECHILD:
                 return
             raise
         while pid:
                 return
             raise
         while pid: