GNOME Bugzilla – Bug 590550
POSIX bindings lacks SYNC
Last modified: 2009-08-16 20:26:13 UTC
I needed to use the SYNC() call (man 2 sync) in a program, to ensure that some data has been written in the disk before validating it in a register. I tried to use Posix.sync(), but found that the bindings lacks them, so I had to use Process.spawn_command_line_sync("sync") to call the command line and do a sync.
Created attachment 139761 [details] [review] posix: add sync, fsync, and fdatasync
commit 8579b7b19462ffedc7bacd661e94189ebed6716c Author: Evan Nemerson <evan@polussystems.com> Date: Sun Aug 2 14:40:16 2009 -0700 posix: Add sync, fsync, and fdatasync bindings Fixes bug 590550.