The code, when received -1, performed -1/1000 operation which rounds to 0, i.e. no wait (instead of infinite wait)
The file is empty.
The code, when received -1, performed -1/1000 operation which rounds to 0, i.e. no wait (instead of infinite wait)