aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/mp_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/mp_serial.c')
-rw-r--r--ncpd/mp_serial.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ncpd/mp_serial.c b/ncpd/mp_serial.c
index 7f6a792..7483a3e 100644
--- a/ncpd/mp_serial.c
+++ b/ncpd/mp_serial.c
@@ -131,7 +131,7 @@ init_serial(const char *dev, int speed, int debug)
perror("seteuid");
exit(1);
}
- if ((fd = open(dev, O_RDWR /*FRITZTEST | O_NDELAY */ | O_NOCTTY, 0)) < 0) {
+ if ((fd = open(dev, O_RDWR | O_NOCTTY, 0)) < 0) {
perror(dev);
exit(1);
}
@@ -184,6 +184,9 @@ ser_exit(int fd)
{
struct termios ti;
+#ifdef TIOCNXCL
+ ioctl(fd, TIOCNXCL, (char *) 0);
+#endif
if (tcgetattr(fd, &ti) < 0)
perror("tcgetattr");
ti.c_cflag &= ~CRTSCTS;