mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Process Async IO.
Windows fixes.
This commit is contained in:
@@ -947,7 +947,8 @@ bool LSPClientServer::start() {
|
||||
mLSP.commandParameters = " " + mLSP.commandParameters;
|
||||
cmd += mLSP.commandParameters;
|
||||
}
|
||||
bool ret = mProcess.create( cmd, Process::getDefaultOptions(), {}, mRootPath );
|
||||
bool ret =
|
||||
mProcess.create( cmd, Process::getDefaultOptions() | Process::EnableAsync, {}, mRootPath );
|
||||
if ( ret && mProcess.isAlive() ) {
|
||||
mProcess.startAsyncRead(
|
||||
[this]( const char* bytes, size_t n ) { readStdOut( bytes, n ); },
|
||||
|
||||
Reference in New Issue
Block a user