Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.

Commit

Permalink
Avoid calling fsync on closed fd
Browse files Browse the repository at this point in the history
  • Loading branch information
cwilso11 committed Mar 31, 2011
1 parent 7eae2b4 commit fd02eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions msys/rt/src/winsup/cygwin/ChangeLog.MSYS
@@ -1,3 +1,8 @@
2011.03.31 Charles Wilson <mingw@cwilson.fastmail.fm>

* syscall.cc (_close): Avoid calling fsync() on file descriptor
we just closed.

2010.09.28 Cesar Strauss <cestrauss@gmail.com>

* include/cygwin/version.h: Increment version to 1.0.16.
Expand Down
1 change: 0 additions & 1 deletion msys/rt/src/winsup/cygwin/syscalls.cc
Expand Up @@ -507,7 +507,6 @@ _close (int fd)
{
SetResourceLock (LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," close");
res = cygheap->fdtab[fd]->close ();
fsync(fd);
cygheap->fdtab.release (fd);
ReleaseResourceLock (LOCK_FD_LIST,WRITE_LOCK|READ_LOCK," close");
}
Expand Down

0 comments on commit fd02eb2

Please sign in to comment.