]> xenbits.xensource.com Git - libvirt.git/commit
win32: Pretend that close-on-exec works
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 9 Oct 2012 20:49:46 +0000 (22:49 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 9 Oct 2012 21:55:54 +0000 (23:55 +0200)
commitfcfa4bfb1660cdb083aa61e366ddc8e91a53e3ed
treef36ccde83c7f9e20c1f55ebeecd739f545a0e010
parent69037428d74cd04485621269e1042b893d7ed50b
win32: Pretend that close-on-exec works

Currently virNetSocketNew fails because virSetCloseExec fails as there
is no proper implementation for it on Windows at the moment. Workaround
this by pretending that setting close-on-exec on the fd works. This can
be done because libvirt currently lacks the ability to create child
processes on Windows anyway. So there is no point in failing to set a
flag that isn't useful at the moment anyway.
src/util/util.c