Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buffer stderr and stdout before triggering callbacks
Currently, whenever the compile_command outputs data on stdout or stderr the corresponding on_stdout or on_stderr is called. This results in multiple (at least 5 for even one compilation error) calls to those functions which in turn do some work parsing errors. Adding stdout_buffered and stderr_buffered to jobstart will wait until they finish writing to those descriptors, reducing the calls to on_stdout and on_stderr to at most one.
- Loading branch information