]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librspreload: Make socket_fallback() call more generic
authorSean Hefty <sean.hefty@intel.com>
Mon, 16 Jul 2012 21:17:58 +0000 (14:17 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 19 Jul 2012 21:22:07 +0000 (14:22 -0700)
commit3e52eb22f44eafaefa95c4674bc5665a94e15694
tree47adffa1c470a8413209e0679e601e328605b9da
parent2ffda7f2991395570b9e776ff5ae256ca9684771
librspreload: Make socket_fallback() call more generic

socket_fallback is used to switch from an rsocket to a normal
socket in the case of failures.  Rename the call and make it
more generic, so that it can switch between an rsocket and
a normal socket in either direction.  This will be used to
support fork().

As part of this change, we move the list of hooked and rsocket
calls into structures, versus maintaining a large number of
static variables.

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