]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rspreload: Call real.close in fd_close
authorSean Hefty <sean.hefty@intel.com>
Wed, 1 Aug 2012 23:26:11 +0000 (16:26 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 1 Aug 2012 23:26:11 +0000 (16:26 -0700)
commit3409f8d6af187d25c63a5d1f8ee8bff5f14555e2
treec4f9e56fde30641b69e81060e3981b0df33f49c2
parentb8f3b02178571b9db3f31520c49b85c0fdc4bf65
rspreload: Call real.close in fd_close

The index into the preload lookup table is obtained by opening
/dev/null and use the returned value.  When closing the file,
use the real close call and not the preload close call.  This
is a minor optimization, but clarifies the expected operation.

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