]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-wait: initialize timeout to -1
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 31 Aug 2012 16:28:42 +0000 (11:28 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 12 Nov 2012 18:17:30 +0000 (13:17 -0500)
Otherwise it defaults to 0, meaning don't wait.  -1 means wait forever,
which is what we want as the default behavior.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_wait.c

index efb0a69847861eea82cbd31fb7e0032ccdd1a002..385392695e15cac7693499570dcb09189fc974d1 100644 (file)
@@ -75,6 +75,7 @@ Options :\n\
        .options  = my_longopts,
        .parser   = my_parser,
        .checker  = my_checker,
+       .timeout = -1,
 };
 
 static void timeout_handler(int signal)