mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-03-02 10:43:50 +01:00
CID12154 - Close tty on failure to set attribute
This commit is contained in:
parent
907e3514fa
commit
a3e918ee32
|
|
@ -327,6 +327,7 @@ int thumbDV_openSerial(const char * tty_name)
|
|||
|
||||
if (tcsetattr(fd, TCSANOW, &tty) != 0) {
|
||||
output("ThumbDV: error %d from tcsetattr\n", errno);
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue