Add a wrapper to determine if a file is EOF
The stream is already closed at this point. Which means feof will always
return false. We have to determine if the stream is EOF in the
preCloseCallback. And pass this info along. Then the logic works as
expected.
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
Loading
Please register or sign in to comment