mirror of https://github.com/buggins/dlangide.git
fix build error
This commit is contained in:
parent
97f6ad372e
commit
8c2dc182ef
|
@ -204,7 +204,7 @@ class ExternalProcess {
|
||||||
}
|
}
|
||||||
// check for process finishing
|
// check for process finishing
|
||||||
try {
|
try {
|
||||||
auto pstate = tryWait(_pipes.pid);
|
auto pstate = std.process.tryWait(_pipes.pid);
|
||||||
if (pstate.terminated) {
|
if (pstate.terminated) {
|
||||||
pollStreams();
|
pollStreams();
|
||||||
_state = ExternalProcessState.Stopped;
|
_state = ExternalProcessState.Stopped;
|
||||||
|
@ -222,7 +222,7 @@ class ExternalProcess {
|
||||||
if (_state == ExternalProcessState.Error || _state == ExternalProcessState.None || _state == ExternalProcessState.Stopped)
|
if (_state == ExternalProcessState.Error || _state == ExternalProcessState.None || _state == ExternalProcessState.Stopped)
|
||||||
return _state;
|
return _state;
|
||||||
try {
|
try {
|
||||||
_result = wait(_pipes.pid);
|
_result = std.process.wait(_pipes.pid);
|
||||||
_state = ExternalProcessState.Stopped;
|
_state = ExternalProcessState.Stopped;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e("Exception while waiting for process ", _program);
|
Log.e("Exception while waiting for process ", _program);
|
||||||
|
@ -236,7 +236,7 @@ class ExternalProcess {
|
||||||
if (_state == ExternalProcessState.Error || _state == ExternalProcessState.None || _state == ExternalProcessState.Stopped)
|
if (_state == ExternalProcessState.Error || _state == ExternalProcessState.None || _state == ExternalProcessState.Stopped)
|
||||||
return _state;
|
return _state;
|
||||||
if (_state == ExternalProcessState.Stopping) {
|
if (_state == ExternalProcessState.Stopping) {
|
||||||
kill(_pipes.pid);
|
std.process.kill(_pipes.pid);
|
||||||
}
|
}
|
||||||
return _state;
|
return _state;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue