According to the standard specification (e.g., POSIX.1-2001), sync() schedules the writes, but may return before the actual writing is done. However, since version 1.3.20 Linux does actually wait. (This still does not guaran‐ tee data integrity: modern disks have large caches.)
自从 1.3.20 起,就已经改成等待同步结束再返回了。 [解决办法] study [解决办法] 学习! [解决办法] system()->fork() or vfork(). It will cause many zombie process. And system process number is a limited number. So if you call system() many times. It will cause the system crash. [解决办法] try unlink(). [解决办法] jjjff