标题: fsync 与 撤销点 [打印本页] 作者: peidright 时间: 2010-06-29 00:26 标题: fsync 与 撤销点 fsync
This function is a cancellation point in multi-threaded programs. This is a problem
if the thread allocates some resources (like memory, file descriptors, semaphores or
whatever) at the time fsync is called. If the thread gets canceled these resources stay
allocated until the program ends. To avoid this, calls to fsync should be protected
using cancellation handlers.