]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix virpidfile on mingw
authorEric Blake <eblake@redhat.com>
Wed, 17 Aug 2011 17:46:35 +0000 (11:46 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 17 Aug 2011 17:51:24 +0000 (11:51 -0600)
commitc811de8fb7ada54a3bfb19f9834ad026cacaf42c
treea19ffdfc6bbfc5db560cc38b084b2d2d3973aba7
parent984840a2c292402926ad100aeea33f8859ff31a9
build: fix virpidfile on mingw

Regression introduced in commit b7e5ca4.

Mingw lacks kill(), but we were only using it for a sanity check;
so we can go with one less check.

Also, on OOM error, this function should outright fail rather than
claim that the pid file was successfully read.

* src/util/virpidfile.c (virPidFileReadPathIfAlive): Skip kill
call where unsupported, and report error on OOM.
src/util/virpidfile.c