From ef3a6692412b234a46326d330943556977f7c988 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sat, 27 Mar 2010 10:49:24 +0000 Subject: [PATCH] tests: Move alarm(2) calls to the correct place in the tests. This is a re-fix for RHBZ#505329. --- src/generator.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generator.ml b/src/generator.ml index e996521..f519c4d 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -6450,14 +6450,14 @@ int main (int argc, char *argv[]) exit (EXIT_FAILURE); } + /* Set a timeout in case qemu hangs during launch (RHBZ#505329). */ + alarm (600); + if (guestfs_launch (g) == -1) { printf (\"guestfs_launch FAILED\\n\"); exit (EXIT_FAILURE); } - /* Set a timeout in case qemu hangs during launch (RHBZ#505329). */ - alarm (600); - /* Cancel previous alarm. */ alarm (0); -- 1.8.3.1