Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/serial: extend open_count to uint16_t type in uart_dev_s
Fix file duplicaion failure(-24) for /dev/console, when may tasks(more than 85) exist. ap> cu -l /dev/ttyCP [01/19 06:48:44] [13] [ap] files_duplist: Dup fd 0 [01/19 06:48:44] [13] [ap] 13 0 3 1 0 /dev/console [01/19 06:48:44] [13] [ap] files_duplist: Dup fd 1 [01/19 06:48:44] [13] [ap] 13 0 3 1 0 /dev/console [01/19 06:48:44] [13] [ap] files_duplist: file_dup2 failed ret -24 line 765 [01/19 06:48:44] [13] [ap] files_duplist: file_dup2 failed line 769 [01/19 06:48:44] [1036] [ap] PID FD FLAGS TYPE POS PATH [01/19 06:48:44] [1036] [ap] 10360 3 1 0 /dev/console [01/19 06:48:44] [1036] [ap] PID FD FLAGS TYPE POS PATH [01/19 06:48:44] [1036] [ap] 10360 3 1 0 /dev/console [01/19 06:48:44] [1036] [ap] 10361 3 1 0 /dev/ttyCP Signed-off-by: fangpeina <[email protected]>
- Loading branch information