Call ttyld_close() in nmdmclose() to ensure that nmdm(4)

closes line discipline installed onto /dev/nmdmX device.

Reviewed by:	julian
Approved by:	re (hrs)
MFC after:	3 days
This commit is contained in:
Maksim Yevmenkin 2007-08-01 21:38:11 +00:00
parent d6fe462ac1
commit acbfc85b17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171689

View File

@ -401,8 +401,13 @@ nmdmmodem(struct tty *tp, int sigon, int sigoff)
static int
nmdmclose(struct cdev *dev, int flag, int mode, struct thread *td)
{
struct tty *tp = dev->si_tty;
int error;
return (tty_close(dev->si_tty));
error = ttyld_close(tp, flag);
(void) tty_close(dev->si_tty);
return (error);
}
static void