From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: "Phil Winterfield (winterfi)" <winterfi@cisco.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Unexpected error: exceptions.OSError
Date: Fri, 14 Mar 2008 14:45:56 +0000 [thread overview]
Message-ID: <20080314144556.GU4358@implementation.uk.xensource.com> (raw)
In-Reply-To: <38AD81989214D54EB5F20C69477AF6C105C4FD2B@xmb-sjc-217.amer.cisco.com>
Hello,
Phil Winterfield (winterfi), le Thu 13 Mar 2008 15:45:03 -0700, a écrit :
> (p, rv) = os.waitpid(cpid, os.WNOHANG)
>
> OSError: [Errno 10] No child processes
Mmm, I think that may happen e.g. if the creation doesn't exit but gets
a signal, because in the loop we only test WIFEXITED(). If think maybe
we should rather
if os.WIFEXITED():
if os.WEXITSTATUS(rv) != 0:
sys.exit(os.WEXITSTATUS(rv))
elif os.WIFSIGNALED(status):
print ("got signal %d" % os.WTERMSIG(rv))
sys.exit(1)
elif os.WIFSTOPPED(status):
print ("got stopped with signal %d" % os.WSTOPSIG(rv))
sys.exit(1)
elif os.WIFCONTINUED(status):
print ("continued")
sys.exit(1)
To make sure that we properly exit() and return appropriate error
message.
Samuel
next prev parent reply other threads:[~2008-03-14 14:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-13 22:45 Unexpected error: exceptions.OSError Phil Winterfield (winterfi)
2008-03-14 9:02 ` Keir Fraser
2008-03-14 14:45 ` Samuel Thibault [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-29 20:17 Fermín Galán Márquez
2008-05-15 12:23 ` Yann Dìnendal
2006-05-22 18:26 Jordi Borràs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080314144556.GU4358@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=winterfi@cisco.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.