Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 28 Jan 2015 18:46:54 +0100
From: Trutz Behn <me@...tz.be>
To: musl@...ts.openwall.com
Subject: [PATCH] make fsync, fdatasync and msync cancellation points

---
 src/mman/msync.c       | 2 +-
 src/unistd/fdatasync.c | 2 +-
 src/unistd/fsync.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mman/msync.c b/src/mman/msync.c
index bb20475b4de3..fcd8cdf9fc17 100644
--- a/src/mman/msync.c
+++ b/src/mman/msync.c
@@ -3,5 +3,5 @@
 
 int msync(void *start, size_t len, int flags)
 {
-	return syscall(SYS_msync, start, len, flags);
+	return syscall_cp(SYS_msync, start, len, flags);
 }
diff --git a/src/unistd/fdatasync.c b/src/unistd/fdatasync.c
index dd4d41c75c7e..3895ae530c75 100644
--- a/src/unistd/fdatasync.c
+++ b/src/unistd/fdatasync.c
@@ -3,5 +3,5 @@
 
 int fdatasync(int fd)
 {
-	return syscall(SYS_fdatasync, fd);
+	return syscall_cp(SYS_fdatasync, fd);
 }
diff --git a/src/unistd/fsync.c b/src/unistd/fsync.c
index dc4727cc1d17..7a1c80b5de0d 100644
--- a/src/unistd/fsync.c
+++ b/src/unistd/fsync.c
@@ -3,5 +3,5 @@
 
 int fsync(int fd)
 {
-	return syscall(SYS_fsync, fd);
+	return syscall_cp(SYS_fsync, fd);
 }
-- 
2.2.2

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.