|
From: | Thomas Huth |
Subject: | Re: [PATCH 32/51] tests/qtest: Fix ERROR_SHARING_VIOLATION for win32 |
Date: | Thu, 25 Aug 2022 14:06:15 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 |
On 24/08/2022 11.40, Bin Meng wrote:
From: Bin Meng <bin.meng@windriver.com> On Windows, the MinGW provided mkstemp() API opens the file with exclusive access, denying other processes to read/write the file. Such behavior prevents the QEMU executable from opening the file, (e.g.: CreateFile returns ERROR_SHARING_VIOLATION). This can be fixed by closing the file and reopening it.
Would it work to use the glib functions instead (like g_file_open_tmp() ?) Thomas
[Prev in Thread] | Current Thread | [Next in Thread] |