sim: fix function for emulating dup()
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 13 Apr 2015 22:33:57 +0000 (17:33 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 13 Apr 2015 22:33:57 +0000 (17:33 -0500)
commitb26fef8466ce0ddf4bd0695e09538117e16cf7d8
tree56ab9023d2c4d47629f6fcc363a767fdba33fd23
parentc3268f882029c7501867540ccf04db054fdff084
sim: fix function for emulating dup()
The function was using the host fd to obtain the fd object from the simulated
process.
src/sim/syscall_emul.cc