Skip to content

Commit

Permalink
Windows: daemon-windows lockfile
Browse files Browse the repository at this point in the history
_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>
  • Loading branch information
Alin Serdean authored and shettyg committed Jul 26, 2016
1 parent b63bf24 commit 9364ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/daemon-windows.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 9364ae6

Please sign in to comment.