mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
Portable fsync call
This commit is contained in:
committed by
Lorenz Meier
parent
dc8c6ea5e5
commit
81d00e730a
@@ -445,7 +445,7 @@ protected:
|
||||
} else {
|
||||
(void)fputs("\n", _fp);
|
||||
#ifdef __PX4_NUTTX
|
||||
fsync(_fp->fs_filedes);
|
||||
fsync(fileno(_fp));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ protected:
|
||||
fputs(msg.text, _fp);
|
||||
fputs("\n", _fp);
|
||||
#ifdef __PX4_NUTTX
|
||||
fsync(_fp->fs_filedes);
|
||||
fsync(fileno(_fp));
|
||||
#endif
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user