test - Adjust randread to not share file descriptors
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Feb 2012 23:32:52 +0000 (15:32 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Feb 2012 23:32:52 +0000 (15:32 -0800)
commit79580b6b91b2d2b38532aa3837ac35f22055f2ab
treebce5db1056229da9d81bd6d24fb987d5d70894a7
parent259d5c76706a1caa0091c790fad8439fa9ee7844
test - Adjust randread to not share file descriptors

* Close and reopen the device when randread fork()s so the physical
  file descriptor is not shared.  The vnode will still be shared.

* Works around a serialization issue when a file descriptor is shared.
test/sysperf/randread.c