mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
setlogmask: fix uncloseed handle
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
11de514217
commit
5a0bc863dd
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ static int print_channels(void)
|
|||
|
||||
memset(info, 0, sizeof(info));
|
||||
ret = ioctl(fd, SYSLOGIOC_GETCHANNELS, &info);
|
||||
close(fd);
|
||||
if (ret < 0)
|
||||
{
|
||||
perror("Failed to get channels");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue