mirror of https://github.com/buggins/dlangui.git
add more logs to identify #480 root cause; trying to fix
This commit is contained in:
parent
da4285e697
commit
cc85663ac3
|
@ -232,11 +232,15 @@ class ConsolePlatform : Platform {
|
||||||
* When returned from this method, application is shutting down.
|
* When returned from this method, application is shutting down.
|
||||||
*/
|
*/
|
||||||
override int enterMessageLoop() {
|
override int enterMessageLoop() {
|
||||||
|
Log.i("Entered message loop");
|
||||||
while (_console.pollInput()) {
|
while (_console.pollInput()) {
|
||||||
if (_windowList.length == 0)
|
if (_windowList.length == 0) {
|
||||||
|
Log.d("Window count is 0 - exiting message loop");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// TODO
|
Log.i("Exiting from message loop");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
private dstring _clipboardText;
|
private dstring _clipboardText;
|
||||||
|
|
|
@ -290,7 +290,15 @@ class Console {
|
||||||
import core.stdc.errno;
|
import core.stdc.errno;
|
||||||
int res = cast(int)write(STDOUT_FILENO, s.ptr, s.length);
|
int res = cast(int)write(STDOUT_FILENO, s.ptr, s.length);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
Log.e("rawWrite error ", errno, " - stopping terminal");
|
auto err = errno;
|
||||||
|
while (err == EAGAIN) {
|
||||||
|
debug Log.d("rawWrite error EAGAIN - will retry");
|
||||||
|
res = cast(int)write(STDOUT_FILENO, s.ptr, s.length);
|
||||||
|
if (res >= 0)
|
||||||
|
return (res > 0);
|
||||||
|
err = errno;
|
||||||
|
}
|
||||||
|
Log.e("rawWrite error ", err, " - stopping terminal");
|
||||||
_stopped = true;
|
_stopped = true;
|
||||||
}
|
}
|
||||||
return (res > 0);
|
return (res > 0);
|
||||||
|
|
Loading…
Reference in New Issue