Quellcode durchsuchen

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 vor 12 Jahren
Ursprung
Commit
ee1f69a360
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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);
 }