svn commit: r311634 - stable/11/contrib/netbsd-tests/lib/libc/ttyio

Ngie Cooper ngie at FreeBSD.org
Sat Jan 7 09:44:58 UTC 2017


Author: ngie
Date: Sat Jan  7 09:44:57 2017
New Revision: 311634
URL: https://svnweb.freebsd.org/changeset/base/311634

Log:
  MFC r311245:
  
  tty: don't leak s after opening it with openpty
  
  CID:		978321

Modified:
  stable/11/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c
==============================================================================
--- stable/11/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c	Sat Jan  7 09:44:05 2017	(r311633)
+++ stable/11/contrib/netbsd-tests/lib/libc/ttyio/t_ttyio.c	Sat Jan  7 09:44:57 2017	(r311634)
@@ -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-all mailing list