From: Vincent Hanquez Subject: [PATCH 4/6] typo in old patch, lead to waitpid forever instead of waitpid with WNOHANG Date: Mon, 11 Jan 2010 21:48:24 +0000 Message-ID: <1263246506-5488-5-git-send-email-vincent.hanquez@eu.citrix.com> References: <1263246506-5488-1-git-send-email-vincent.hanquez@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.6.6" Return-path: In-Reply-To: <1263246506-5488-1-git-send-email-vincent.hanquez@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Vincent Hanquez List-Id: xen-devel@lists.xenproject.org --------------1.6.6 Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: quoted-printable fix qemu starting problem Signed-off-by: Vincent Hanquez --- tools/libxl/libxl_exec.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --------------1.6.6 Content-Type: text/x-patch; name="0004-typo-in-old-patch-lead-to-waitpid-forever-instead-of.patch" Content-Disposition: attachment; filename="0004-typo-in-old-patch-lead-to-waitpid-forever-instead-of.patch" Content-Transfer-Encoding: quoted-printable diff --git a/tools/libxl/libxl_exec.c b/tools/libxl/libxl_exec.c index ba92019..1588a1f 100644 --- a/tools/libxl/libxl_exec.c +++ b/tools/libxl/libxl_exec.c @@ -45,7 +45,7 @@ static pid_t libxl_fork(struct libxl_ctx *ctx) =20 static int call_waitpid(pid_t (*waitpid_cb)(pid_t, int *, int), pid_t pi= d, int *status, int options) { - return (waitpid_cb) ? waitpid_cb(pid, status, 0) : waitpid(pid, stat= us, 0); + return (waitpid_cb) ? waitpid_cb(pid, status, options) : waitpid(pid= , status, options); } =20 void libxl_exec(struct libxl_ctx *ctx, int stdinfd, int stdoutfd, int st= derrfd, @@ -202,7 +202,7 @@ int libxl_spawn_check(struct libxl_ctx *ctx, void *fo= r_spawn_void) if (!for_spawn) return 0; =20 assert(for_spawn->intermediate); - got =3D call_waitpid(ctx->waitpid_instead, for_spawn->intermediate, = &status, 0); + got =3D call_waitpid(ctx->waitpid_instead, for_spawn->intermediate, = &status, WNOHANG); if (!got) return 0; =20 assert(got =3D=3D for_spawn->intermediate); --------------1.6.6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------1.6.6--