failtest: use high-numbers file descriptors to stay out of the way.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:35:11 +0000 (09:05 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Nov 2011 22:35:11 +0000 (09:05 +1030)
commit163daaf4813b2061b106b9b0077202724e3dca04
tree170c07cbf74b01d31ca30d33aa57484cb70fa1e2
parent9571a41e8494f3135557e3ec50c2de856392173e
failtest: use high-numbers file descriptors to stay out of the way.

We use file descriptors inside failtest; use dup2 to try to avoid
changing the file descriptor numbers used in the program (particularly
when programs mess with invalid file descriptors, they're likely to
still be invalid).
ccan/failtest/failtest.c