Re: [Spice-devel] [PATCH] [vd_agent] close the file handler if file_size = 0

2014-08-11 Thread Christophe Fergeau
On Sat, Aug 09, 2014 at 06:40:22PM +0800, Cody Chan wrote: After dragging a zero-size file, then I open it in guest, I get a warning message box which says: the process cannot access the file because it is being used by another process. And I get to know the file is occupied by vdagent. Now

Re: [Spice-devel] [PATCH] [vd_agent] close the file handler if file_size = 0

2014-08-11 Thread Cody Chan
On Mon, Aug 11, 2014 at 7:04 PM, Christophe Fergeau cferg...@redhat.com wrote: On Sat, Aug 09, 2014 at 06:40:22PM +0800, Cody Chan wrote: After dragging a zero-size file, then I open it in guest, I get a warning message box which says: the process cannot access the file because it is

[Spice-devel] [PATCH] [vd_agent] close the file handler if file_size = 0

2014-08-09 Thread Cody Chan
After dragging a zero-size file, then I open it in guest, I get a warning message box which says: the process cannot access the file because it is being used by another process. And I get to know the file is occupied by vdagent. Now we look back the process: a) When dragging a zero-size file,