Date: Sat, 7 Jan 2017 09:45:00 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r311635 - stable/10/contrib/netbsd-tests/lib/libc/ttyio Message-ID: <201701070945.v079j0JX008468@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701070945.v079j0JX008468>