Author: jilles Date: Sat May 4 11:45:48 2013 New Revision: 250231 URL: http://svnweb.freebsd.org/changeset/base/250231
Log: libkvm: Make second /dev/null file descriptor close-on-exec as well. MFC after: 1 week Modified: head/lib/libkvm/kvm.c Modified: head/lib/libkvm/kvm.c ============================================================================== --- head/lib/libkvm/kvm.c Sat May 4 09:47:51 2013 (r250230) +++ head/lib/libkvm/kvm.c Sat May 4 11:45:48 2013 (r250231) @@ -187,7 +187,7 @@ _kvm_open(kvm_t *kd, const char *uf, con * case you're working with a live kernel.) */ if (strcmp(mf, _PATH_DEVNULL) == 0) { - kd->vmfd = open(_PATH_DEVNULL, O_RDONLY); + kd->vmfd = open(_PATH_DEVNULL, O_RDONLY | O_CLOEXEC); return (kd); } else if (strcmp(mf, _PATH_MEM) == 0) { if ((kd->vmfd = open(_PATH_KMEM, flag | O_CLOEXEC)) < _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"