From f15aa5b83fc1eab21b4dd6a6abf38159aa0ff92e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 15 Oct 2012 12:49:57 +0400 Subject: [PATCH] driver/genpsi.c: add fdatasync, this should wakeup hdd before record started Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/767a7d3871a887413f878bd6c10a9b49ecebc6d2 Author: [CST] Focus Date: 2012-10-15 (Mon, 15 Oct 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/genpsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/driver/genpsi.c b/src/driver/genpsi.c index 381f0ac50..6724369ea 100644 --- a/src/driver/genpsi.c +++ b/src/driver/genpsi.c @@ -278,5 +278,6 @@ int genpsi(int fd2) //-- finish -- avPids.vpid=0; avPids.nba=0; + fdatasync(fd2); return 1; }