Kaynağa Gözat

fix dummied-out fsync

if we eventually have build options, it might be nice to make an
option to dummy this out again, in case anybody needs a system-wide
disable for disk/ssd-thrashing, etc. that some daemons do when
logging...
Rich Felker 12 yıl önce
ebeveyn
işleme
ee1f69a360
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      src/unistd/fsync.c

+ 1 - 2
src/unistd/fsync.c

@@ -3,6 +3,5 @@
 
 int fsync(int fd)
 {
-	//return syscall(SYS_fsync, fd);
-	return 0;
+	return syscall(SYS_fsync, fd);
 }