This is caused by iiod_responder_wait_done() in iiod-responder.c. The thread is probably not stopped correctly and therefore cannot join. Testscenario: latest master libiio, network context to sdr.