Hello, I have encountered unexpected behavior when using flock. It will block forever, but to my understanding it should not. I've attached a simple program that would trigger the behavior. Regards, Alex