]> git.proxmox.com Git - mirror_lxc.git/commit
Fix the timeout == 0 case in lxcapi_shutdown()
authorRobert Vogelgesang <vogel@users.sourceforge.net>
Fri, 31 Jan 2014 10:47:02 +0000 (11:47 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 31 Jan 2014 12:03:12 +0000 (12:03 +0000)
commita52e315d12fa8ea682b7f58c999dab6d74c60e33
tree6f309f5d1c8cc7ebac2967ae939e55c66af23fe4
parenta17b1e65faaffe34c83860e599be21ad8e59b338
Fix the timeout == 0 case in lxcapi_shutdown()

The timeout argument should be handled as follows:
   -1 => Wait forever
    0 => Don't wait
  > 0 => Wait for timeout seconds

Without this patch, the 0 case is mapped to -1.

Signed-off-by: Robert Vogelgesang <vogel@users.sourceforge.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c