Merge pull request #9 from pinver/patch-1
avoid to pollute the console by default
This commit is contained in:
commit
35f423a29c
|
@ -59,11 +59,11 @@ final class KqueueEventLoop : PosixEventLoop {
|
||||||
m_changes.length = 0;
|
m_changes.length = 0;
|
||||||
m_changes.assumeSafeAppend();
|
m_changes.assumeSafeAppend();
|
||||||
|
|
||||||
print("kevent returned %s", ret);
|
//print("kevent returned %s", ret);
|
||||||
|
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
foreach (ref evt; m_events[0 .. ret]) {
|
foreach (ref evt; m_events[0 .. ret]) {
|
||||||
print("event %s %s", evt.ident, evt.filter, evt.flags);
|
//print("event %s %s", evt.ident, evt.filter, evt.flags);
|
||||||
assert(evt.ident <= uint.max);
|
assert(evt.ident <= uint.max);
|
||||||
auto fd = cast(FD)cast(int)evt.ident;
|
auto fd = cast(FD)cast(int)evt.ident;
|
||||||
if (evt.flags & (EV_EOF|EV_ERROR))
|
if (evt.flags & (EV_EOF|EV_ERROR))
|
||||||
|
|
Loading…
Reference in a new issue