svn commit: r311635 - stable/10/contrib/netbsd-tests/lib/libc/ttyio
Ngie Cooper
ngie at FreeBSD.org
Sat Jan 7 09:45:01 UTC 2017
Author: ngie
Date: Sat Jan 7 09:45:00 2017
New Revision: 311635
URL: https://svnweb.freebsd.org/changeset/base/311635
Log:
MFC r311245:
tty: don't leak s after opening it with openpty
CID: 978321
Modified:
stable/10/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c
==============================================================================
--- stable/10/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c Sat Jan 7 09:44:57 2017 (r311634)
+++ stable/10/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c Sat Jan 7 09:45:00 2017 (r311635)
@@ -152,6 +152,9 @@ ATF_TC_BODY(ioctl, tc)
REQUIRE_ERRNO(sigaction(SIGCHLD, &sa, NULL), -1);
(void) wait(NULL);
+#ifdef __FreeBSD__
+ (void)close(s);
+#endif
ATF_REQUIRE_EQ(rc, 0);
}
More information about the svn-src-stable-10
mailing list