Re: [Qemu-devel] [PATCH 2/6] qemu-ga: Drop pointless lseek() from ga_open_pidfile()

2013-01-11 Thread mdroth
On Fri, Jan 11, 2013 at 11:24:58AM +0100, Markus Armbruster wrote: > After open(), the file offset is already zero, and neither lockf() nor > ftruncate() change it. > > Signed-off-by: Markus Armbruster Reviewed-by: Michael Roth > --- > qga/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

[Qemu-devel] [PATCH 2/6] qemu-ga: Drop pointless lseek() from ga_open_pidfile()

2013-01-11 Thread Markus Armbruster
After open(), the file offset is already zero, and neither lockf() nor ftruncate() change it. Signed-off-by: Markus Armbruster --- qga/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/main.c b/qga/main.c index 47a6bea..1a22d8d 100644 --- a/qga/main.c +++ b/qga/main.