projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bad042
)
Win32 build fix. FIXME: This disables locking of the pidfile, a
author
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 22 Mar 2007 12:36:53 +0000
(12:36 +0000)
committer
ths
<ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 22 Mar 2007 12:36:53 +0000
(12:36 +0000)
Win32 replacement of lockf should be used here.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2524
c046a42c
-6fe2-441c-8c8c-
71466251a162
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index f368d9bba20b2242ef40545a25eef7fb08a3f449..87bb1bcd50f49e0f1eb55e453f38a6d3b4ee1e5e 100644
(file)
--- 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)