utils.process: FDDrainer.flush() check stream is open
The method flush() in FDDrainer does not check the stream is open
before get its file descriptor, resulting in "ValueError: I/O operation
on closed file".
Changed flush() to check the stream is open, otherwise do not
try to flush.
Signed-off-by: NWainer dos Santos Moschetta <wainersm@redhat.com>
Showing
想要评论请 注册 或 登录