Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil If TIOCPTMGET fails, close /dev/ptm.
details: https://anonhg.NetBSD.org/src/rev/d9f121589817
branches: trunk
changeset: 573074:d9f121589817
user: mycroft <mycroft%NetBSD.org@localhost>
date: Wed Jan 19 01:54:09 2005 +0000
description:
If TIOCPTMGET fails, close /dev/ptm.
diffstat:
lib/libutil/pty.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 978a09b3bc82 -r d9f121589817 lib/libutil/pty.c
--- a/lib/libutil/pty.c Wed Jan 19 01:20:24 2005 +0000
+++ b/lib/libutil/pty.c Wed Jan 19 01:54:09 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pty.c,v 1.27 2004/11/25 02:49:46 christos Exp $ */
+/* $NetBSD: pty.c,v 1.28 2005/01/19 01:54:09 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pty.c 8.3 (Berkeley) 5/16/94";
#else
-__RCSID("$NetBSD: pty.c,v 1.27 2004/11/25 02:49:46 christos Exp $");
+__RCSID("$NetBSD: pty.c,v 1.28 2005/01/19 01:54:09 mycroft Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -85,6 +85,7 @@
linep = pt.sn;
goto gotit;
}
+ (void)close(master);
}
if ((gr = getgrnam("tty")) != NULL) {
Home |
Main Index |
Thread Index |
Old Index