linux-rdma / opensm

Other
66 stars 36 forks source link

Avoid OpenSM hanging when using the performance manager and sending t… #2

Closed jecavil closed 6 years ago

jecavil commented 6 years ago

…he SIGINT signal

jecavil commented 6 years ago

When enabling the performance manager and sending a SIGINT signal to OpenSM, the code often hangs due to it's waiting forever on 'cl_event_wait_on(&perfmgr->sig_query, EVENT_NO_TIMEOUT, TRUE);' in osm_perfmgr.c while trying to destroy the sweeper on 'cl_thread_destroy(&p_sm->sweeper);' in osm_sm.c

jecavil commented 6 years ago

I think it should be fine now.