os/exec: fix test hang Currently the test closes random files descriptors, which leads to hang (in particular if netpoll fd is closed). Try to open only fd 3, since the parent process expects it to be fd 3 anyway. Fixes issue 5571.
os/exec: fix test hang
Currently the test closes random files descriptors,
which leads to hang (in particular if netpoll fd is closed).
Try to open only fd 3, since the parent process expects it to be fd 3 anyway.
Fixes issue 5571.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/9778048

apparentlymart/golang,pombredanne/go-deleteme,gnanderson/go,tv42/old-go,pombredanne/go-deleteme,gnanderson/go,pombredanne/go-deleteme,pombredanne/go-deleteme,pombredanne/go-deleteme,pombredanne/go-deleteme,pombredanne/go-deleteme,apparentlymart/golang,tv42/old-go,apparentlymart/golang,gnanderson/go,tv42/old-go,gnanderson/go,gnanderson/go,apparentlymart/golang,tv42/old-go,apparentlymart/golang,apparentlymart/golang,gnanderson/go,tv42/old-go,tv42/old-go,gnanderson/go,apparentlymart/golang,tv42/old-go