]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rspreload: Fix state checks in dup2
authorSean Hefty <sean.hefty@intel.com>
Fri, 7 Sep 2012 17:20:53 +0000 (10:20 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 7 Sep 2012 17:20:53 +0000 (10:20 -0700)
commit3524c878f537ef2c57f973fad54b1204c299026d
tree79d073d6c2d4883bac75c2245a0da053def1f1d6
parenta7ae817991416863772d28d97839ee8daeefb07e
rspreload: Fix state checks in dup2

The patch to add dup2 support was never updated to handle the fd
state.  The check for the fd type == fd_fork is no longer valid.
We need to instead check the fd state before handling forking.

Problem pointed out by Alex Couvrard <acouvrard@gmail.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/preload.c