Try to replace MSG_DONTWAIT by 0 and add a printf just before then run the unit test named unit-test-master (you need to run unit-test-slave before).
Try to observe the behaviour when a flush occurs to see if the call to recv() is blocking with your flag.
Try to replace MSG_DONTWAIT by 0 and add a printf just before
then run the unit test named unit-test-master (you need to run unit-test-slave before).
Try to observe the behaviour when a flush occurs to see if the call to recv() is blocking with your flag.