_get_osfhandle returns an errno value not a GetLastErrorValue. (https://msdn.microsoft.com/en-us/library/ks2530z6(v=vs.120).aspx)
Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> --- lib/daemon-windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemon-windows.c b/lib/daemon-windows.c index d77724e..7e2e9da 100644 --- a/lib/daemon-windows.c +++ b/lib/daemon-windows.c @@ -417,7 +417,7 @@ flock(FILE* fd, int operation) hFile = (HANDLE)_get_osfhandle(fileno(fd)); if (hFile == INVALID_HANDLE_VALUE) { VLOG_FATAL("Failed to get PID file handle (%s).", - ovs_lasterror_to_string()); + ovs_strerror(errno)); } if (operation & LOCK_UNLOCK) { -- 1.9.5.msysgit.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev