A timeout means wait this long before killing the container.
-s means don't kill the container. timeout defaults to 60
seconds. So if a shutdown is requested, then set timeout to
0.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
</term>
<listitem>
<para>
- Wait TIMEOUT seconds before hard-stopping the container of (in
- the reboot case) returning failure.
+ Wait TIMEOUT seconds before hard-stopping the container.
</para>
</listitem>
</varlistentry>
goto out;
}
+ if (my_args.shutdown)
+ my_args.timeout = 0;
+
s = c->shutdown(c, my_args.timeout);
if (!s) {
if (!my_args.shutdown)