Commit 6e65a42ad383480b9765d02816c8ab486867073b
1 parent
9bad0425
Win32 build fix. FIXME: This disables locking of the pidfile, a
Win32 replacement of lockf should be used here. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2524 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
0 deletions
vl.c
... | ... | @@ -4405,8 +4405,11 @@ static int create_pidfile(const char *filename) |
4405 | 4405 | if (fd == -1) |
4406 | 4406 | return -1; |
4407 | 4407 | |
4408 | + /* XXX: No locking for Win32 implemented */ | |
4409 | +#ifndef _WIN32 | |
4408 | 4410 | if (lockf(fd, F_TLOCK, 0) == -1) |
4409 | 4411 | return -1; |
4412 | +#endif | |
4410 | 4413 | |
4411 | 4414 | len = snprintf(buffer, sizeof(buffer), "%ld\n", (long)getpid()); |
4412 | 4415 | if (write(fd, buffer, len) != len) | ... | ... |