mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Nuke the device name *after* unlocking it.
This commit is contained in:
parent
73406cdfd5
commit
c8dc575810
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/MP/; revision=35120
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: modem.c,v 1.77.2.46 1998/04/10 13:19:13 brian Exp $
|
||||
* $Id: modem.c,v 1.77.2.47 1998/04/10 13:22:38 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -758,11 +758,10 @@ modem_Close(struct physical *modem)
|
||||
if (modem->link.Timer.load)
|
||||
modem_Hangup(modem, force_hack);
|
||||
|
||||
*modem->name.full = '\0';
|
||||
modem->name.base = modem->name.full;
|
||||
|
||||
if (!isatty(modem->fd)) {
|
||||
modem_PhysicalClose(modem);
|
||||
*modem->name.full = '\0';
|
||||
modem->name.base = modem->name.full;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -798,6 +797,8 @@ modem_LogicalClose(struct physical *modem)
|
||||
modem_PhysicalClose(modem);
|
||||
modem_Unlock(modem);
|
||||
}
|
||||
*modem->name.full = '\0';
|
||||
modem->name.base = modem->name.full;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user