When exec'ing child processes (netstat and vmstat), make sure the standard
file descriptors (0, 1, 2) are open. This avoids multiple warnings issued
under NetBSD about running set[ug]id programs with those descriptors closed.
The attached patch fixes this.
(This patch was written in 2004 by Julio Merino <jmmv@NetBSD.org> for pkgsrc. I
don't know why it was never reported upstream. See http://gnats.netbsd.org/26079
for more details.)