Cygwin: fsync: Return EINVAL for special files.
commitaf8a7c13b516c77c1e6092157e23ca26db44b1af
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Fri, 11 Mar 2022 21:19:53 +0000 (12 06:19 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 14 Mar 2022 10:38:49 +0000 (14 19:38 +0900)
tree1bbef9a47143b1bb579a12bd60a3027196dbccc2
parentb2d4dc167cf9ffd992d88e23dc1d3debadcc2c4b
Cygwin: fsync: Return EINVAL for special files.

- Unlike linux, fsync() calls FlushFileBuffers() even for special
  files. This causes the problem reported in:
    https://cygwin.com/pipermail/cygwin/2022-March/251022.html
  This patch fixes the issue.
winsup/cygwin/fhandler.cc