setlogmask: fix uncloseed handle
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
11de514217
commit
5a0bc863dd
@ -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…
Reference in New Issue
Block a user