X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flaunch.c;h=58fb0d12e79b64eebb62dbed5cdf4415f8286920;hb=a21dff8faad086cce7c1a87cfa755a2e4f8eec8e;hp=0af8ed5d4d94afd8c7defeda843e0322e9b3c37b;hpb=d31af9918085e476d78bed6a6b4aa7c9df887501;p=libguestfs.git diff --git a/src/launch.c b/src/launch.c index 0af8ed5..58fb0d1 100644 --- a/src/launch.c +++ b/src/launch.c @@ -1,5 +1,5 @@ /* libguestfs - * Copyright (C) 2009-2010 Red Hat Inc. + * Copyright (C) 2009-2011 Red Hat Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -71,6 +71,7 @@ #include "guestfs_protocol.h" static int launch_appliance (guestfs_h *g); +static int64_t timeval_diff (const struct timeval *x, const struct timeval *y); static int qemu_supports (guestfs_h *g, const char *option); /* Add a string to the current command line. */ @@ -607,11 +608,13 @@ launch_appliance (guestfs_h *g) close (wfd[1]); close (rfd[0]); + /* Stdin. */ if (dup (wfd[0]) == -1) { dup_failed: perror ("dup failed"); _exit (EXIT_FAILURE); } + /* Stdout. */ if (dup (rfd[1]) == -1) goto dup_failed;