<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Error out on save if the file we had opened has been modified since we opened it"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103793#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Error out on save if the file we had opened has been modified since we opened it"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103793">bug 103793</a>
              from <span class="vcard"><a class="email" href="mailto:Thomas.Freitag@alfa.de" title="Thomas Freitag <Thomas.Freitag@alfa.de>"> <span class="fn">Thomas Freitag</span></a>
</span></b>
        <pre>(In reply to Albert Astals Cid from <a href="show_bug.cgi?id=103793#c0">comment #0</a>)
<span class="quote">> It's a stub in windows since my understanding there is that you can't edit a
> file that is open by another program.</span >

You are not true, Albert. The files, at least with poppler, are opened with
sharing enabled, i.e.

  HANDLE handle = CreateFileA(fileName->getCString(),
                              GENERIC_READ,
-->                           FILE_SHARE_READ | FILE_SHARE_WRITE,
                              NULL,
                              OPEN_EXISTING,
                              FILE_ATTRIBUTE_NORMAL, NULL);

That means that other processes are allowed to read and even write to the same
file!
But we can probably do the same under windows with GetFileTime, using the
lpLastWriteTime parameter.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>