sync before fork