commit | 680ad059aa78044b09cbeb756cc231d80f3e7379 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Tue Oct 05 14:29:51 2021 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Tue Oct 05 15:22:14 2021 -0400 |
tree | 29a9a70d02e5d117dccf523ba72806f7370493c1 | |
parent | 57a8a914c797c28f1f9c83cb7a4474bf85ebf6b0 [diff] |
swtpm: Call msync with length = 0 on Cygwin Cygwin internally uses the Windows API call FlushViewOfFile that seems to not like to be called with an excessive number of bytes. Instead, call it with length = 0 so that 'the file is flushed from the base address to the end of the mapping' and then msync() succeeds. Source: https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-flushviewoffile Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>