Fix loading of large source files.
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 6 Apr 2020 00:23:06 +0000 (20:23 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 6 Apr 2020 00:26:28 +0000 (20:26 -0400)
commit90f34b6d84f38b6fa4bc52784a47a4a970ee3156
treec6045dff565ef9369e51b4e1dde28ac9b2cc27a8
parent8eef7c99bed2f60c4daf9b9afc370b0ef413bdc2
Fix loading of large source files.

BSSourceView would wait for the php NSTask to terminate before reading
from the stdout pipe. But if the highlighting output was larger than the
NSPipe buffer, php would fill the buffer and hang in write() waiting for
available space. Instead, start reading the stdout pipe immediately
after launching the task.
CHANGES
Source/BSSourceView.mm