_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 <aserdean@cloudbasesolutions.com>
Acked-by: Paul Boca <pboca@cloudbasesolutions.com>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
hFile = (HANDLE)_get_osfhandle(fileno(fd));
if (hFile == INVALID_HANDLE_VALUE) {
VLOG_FATAL("Failed to get PID file handle (%s).",
hFile = (HANDLE)_get_osfhandle(fileno(fd));
if (hFile == INVALID_HANDLE_VALUE) {
VLOG_FATAL("Failed to get PID file handle (%s).",
- ovs_lasterror_to_string());
}
if (operation & LOCK_UNLOCK) {
}
if (operation & LOCK_UNLOCK) {