[lxc-devel] [lxc/lxc] a52e31: Fix the timeout == 0 case in lxcapi_shutdown()

GitHub noreply at github.com
Fri Jan 31 12:03:18 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a52e315d12fa8ea682b7f58c999dab6d74c60e33
      https://github.com/lxc/lxc/commit/a52e315d12fa8ea682b7f58c999dab6d74c60e33
  Author: Robert Vogelgesang <vogel at users.sourceforge.net>
  Date:   2014-01-31 (Fri, 31 Jan 2014)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  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 at users.sourceforge.net>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list