Calling tail-stream.end() inside a downstream stream handler (f.ex. piping tail-stream to a Transform-stream implementing a filter) causes the file to be closed after read has been called, but before readCont. This causes an exception as the file pointer is NULL'ed in the callback of fs.close(this.fd...
Calling tail-stream.end() inside a downstream stream handler (f.ex. piping tail-stream to a Transform-stream implementing a filter) causes the file to be closed after read has been called, but before readCont. This causes an exception as the file pointer is NULL'ed in the callback of fs.close(this.fd...