Makes sure the read_file() macro subroutine always reads all the way to eof, so that fifos and
other weird 'files' can be read correctly. The old quick'n'dirty approach is attempted first. Only if
that fails (there is still more data in the pipe afterwards) does it switch to incremental reading,
using a temporary buffer and XtRealloc until feof() is encountered.
Log in to post a comment.