kopia lustrzana https://github.com/espressif/esp-idf
fix(console): Fsync not propagated to secondary output
Calls to fsync need to also be propagated to secondary output when CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is enabled. Closes https://github.com/espressif/esp-idf/issues/13162pull/13660/head
rodzic
ee2fbbc7aa
commit
6e628a341a
|
@ -98,7 +98,11 @@ int console_fcntl(int fd, int cmd, int arg)
|
||||||
|
|
||||||
int console_fsync(int fd)
|
int console_fsync(int fd)
|
||||||
{
|
{
|
||||||
return fsync(vfs_console.fd_primary);
|
const int ret_val = fsync(vfs_console.fd_primary);
|
||||||
|
#if CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
|
||||||
|
(void)fsync(vfs_console.fd_secondary);
|
||||||
|
#endif
|
||||||
|
return ret_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_VFS_SUPPORT_DIR
|
#ifdef CONFIG_VFS_SUPPORT_DIR
|
||||||
|
|
Ładowanie…
Reference in New Issue