 				guard nev >= 0 else {
 					Log.terminal("event returned less than zero \(nev).")
 				}
-
+//				print("epoll_wait returned \(nev)")
 				// process results
 				self.lock.doWithLock {
 

#if os(Linux)
				var evt = event()
				evt.events = what.epollEvent | EPOLLONESHOT.rawValue | EPOLLET.rawValue
				epoll_ctl(n.kq, EPOLL_CTL_ADD, socket, &evt)
#else
				var kvt = event(ident: UInt(socket), filter: what.kqueueFilter, flags: UInt16(EV_ADD | EV_ENABLE | EV_ONESHOT), fflags: 0, data: 0, udata: nil)
				var tmout = timespec(tv_sec: 0, tv_nsec: 0)

						} else if (evt.events & EPOLLOUT.rawValue) != 0 {
							filter = .Write
						}
//						print("event rcv \(sock) \(evt.events)")
#else
						let sock = SocketType(evt.ident)
						var filter = Filter.None
