]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rping: create persistent server threads in DETACHED state
authorSteve Wise <swise@opengridcomputing.com>
Mon, 12 Jan 2015 16:57:40 +0000 (10:57 -0600)
committerSean Hefty <sean.hefty@intel.com>
Thu, 22 Jan 2015 20:46:25 +0000 (12:46 -0800)
commit5c5bd081e37a5788defb0ca0bc907b588524fa44
treebc6e27468c0f7e18f8977628c2581cff36914899
parent612eae1f6fe3320a9a657b99b130a9dc6db53858
rping: create persistent server threads in DETACHED state

Since the persistent server threads aren't joined, they must be created in
the DETACHED state or resources will not be cleaned up when they exit.
This results in pthread_create() failures after thousands of rping
instances are run against a persistent server.

Also check the return from all calls to pthread_create() so we don't
ignore a thread creation failure.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
examples/rping.c