1. 18 7月, 2017 1 次提交
  2. 08 4月, 2016 1 次提交
    • Y
      qga: Workaround for console redirection from non-interactive qemu-ga service · 27559c21
      Yuri Pudgorodskiy 提交于
      mingw-glib uses helper process to assist gspawn() api. There are two
      versions of helpers, one with main() and another with WinMain() startup
      routines.
      
      Whenever gspawn() detects consoleless environment (and qemu-ga is running
      in such environment as Win32 service), it chooses helper with main()
      instead of WinMain. It is done by name, e.g.
      gspawn-win32-helper-console.exe vs gspawn-win32-helper.exe
      
      Running console-aware application like any win32 console apps from main()
      crt initalized process results in redirection of stdout to console created
      in crt startup instead of parent-provided handle connected to subprocess
      pipe. Thus, stdout/stderr redirection do not work correctly.
      
      The patch makes WinMain()'s version of helper be used as the only helper
      shipped with qemu-ga package. Using only win32 helper ensures console
      is created before any redirection and fixes stdout/stderr redirection
      issue.
      Signed-off-by: NYuri Pudgorodskiy <yur@virtuozzo.com>
      Signed-off-by: NDenis V. Lunev <den@openvz.org>
      CC: Michael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      27559c21
  3. 25 2月, 2016 1 次提交
  4. 26 11月, 2015 2 次提交
  5. 02 9月, 2015 6 次提交
  6. 17 6月, 2015 1 次提交