1. 19 2月, 2014 1 次提交
  2. 11 7月, 2013 1 次提交
  3. 10 7月, 2013 1 次提交
  4. 08 6月, 2013 1 次提交
    • R
      Fix ordering of file open in virProcessGetNamespaces · 68eea850
      Richard Weinberger 提交于
      virProcessGetNamespaces() opens files in /proc/XXX/ns/ which will
      later be passed to setns(). We have to make sure that the file
      descriptors in the array are in the correct order. In particular
      the 'user' namespace must be first otherwise setns() may fail
      for other namespaces.
      
      The order has been taken from util-linux's sys-utils/nsenter.c
      
      Also we must ignore EINVAL in setns() which occurs if the
      namespace associated with the fd, matches the calling process'
      current namespace.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      68eea850
  5. 21 5月, 2013 1 次提交
  6. 17 5月, 2013 1 次提交
    • G
      qemu: report useful error failling to destroy domain gracefully · 6459af6a
      Guannan Ren 提交于
      Resolves:https://bugzilla.redhat.com/show_bug.cgi?id=927620
      
       #kill -STOP `pidof qemu-kvm`
       #virsh destroy $guest --graceful
       error: Failed to destroy domain testVM
       error: An error occurred, but the cause is unknown
      
      With --graceful, SIGTERM always is emitted to kill driver
      process, but it won't success till burning out waiting time
      in case of process being stopped.
      But domain destroy without --graceful can work, SIGKILL will
      be emitted to the stopped process after 10 secs which always
      kills a process even one that is currently stopped.
      So report an error after burning out waiting time in this case.
      6459af6a
  7. 08 5月, 2013 1 次提交
  8. 03 5月, 2013 1 次提交
    • E
      build: fix mingw build of virprocess.c · 05f79a38
      Eric Blake 提交于
      Commit 776d49f4 added a static function that is only called
      conditionally; leading to this compile error on mingw:
      
        CC       libvirt_util_la-virprocess.lo
      ../../src/util/virprocess.c:624:26: error: 'struct rlimit' declared inside parameter list [-Werror]
      ../../src/util/virprocess.c:624:26: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
      ../../src/util/virprocess.c:622:1: error: 'virProcessPrLimit' defined but not used [-Werror=unused-function]
      
      * src/util/virprocess.c (virProcessPrLimit): Only declare
      virProcessPrLimit when used.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      05f79a38
  9. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  10. 26 4月, 2013 1 次提交
    • L
      util: new virCommandSetMax(MemLock|Processes|Files) · 776d49f4
      Laine Stump 提交于
      This patch adds two sets of functions:
      
      1) lower level virProcessSet*() functions that will immediately set
      the RLIMIT_MEMLOCK. RLIMIT_NPROC, or RLIMIT_NOFILE of either the
      current process (using setrlimit()) or any other process (using
      prlimit()). "current process" is indicated by passing a 0 for pid.
      
      2) functions for virCommand* that will setup a virCommand object to
      set those limits at a later time just after it has forked a new
      process, but before it execs the new program.
      
      configure.ac has prlimit and setrlimit added to the list of functions
      to check for, and the low level functions log an "unsupported" error)
      on platforms that don't support those functions.
      776d49f4
  11. 08 1月, 2013 1 次提交
  12. 21 12月, 2012 5 次提交
  13. 01 11月, 2012 1 次提交
  14. 16 10月, 2012 2 次提交
  15. 27 9月, 2012 1 次提交
  16. 26 9月, 2012 2 次提交