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); } _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"