Use O_NOCTTY in patty_kiss_tnc_open()

This commit is contained in:
XANTRONIX Development 2020-08-16 20:12:46 -05:00 committed by XANTRONIX Industrial
parent d43d24a934
commit 6027a71e28

View file

@ -200,7 +200,7 @@ patty_kiss_tnc *patty_kiss_tnc_new(const char *device) {
goto error_connect;
}
} else {
if ((fd = open(device, O_RDWR)) < 0) {
if ((fd = open(device, O_RDWR | O_NOCTTY)) < 0) {
goto error_open;
}
}