D-Programming-Language/dmd — pull request #1544 by dawgfoto (2013-01-24 07:12:46+00:00)
Title: refactor findNoMainError

This is a followup to #1178.

- use fread/fwrite with 64K buffer

- wrap read buffer at newline to not
split and miss the error message

- avoid hang when linker output exhausts
the OS pipe buffer