aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-22 12:36:53 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-22 12:36:53 +0000
commit6e65a42ad383480b9765d02816c8ab486867073b (patch)
treee515406d898de22616d7b3861b818b9e20bb558f /vl.c
parent9bad0425a0792b868eecfb9edd9157891554aa51 (diff)
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
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index f368d9bba2..87bb1bcd50 100644
--- a/vl.c
+++ b/vl.c
@@ -4405,8 +4405,11 @@ static int create_pidfile(const char *filename)
if (fd == -1)
return -1;
+ /* XXX: No locking for Win32 implemented */
+#ifndef _WIN32
if (lockf(fd, F_TLOCK, 0) == -1)
return -1;
+#endif
len = snprintf(buffer, sizeof(buffer), "%ld\n", (long)getpid());
if (write(fd, buffer, len) != len)