Refactor UnixEventPort interface to be edge-triggering-friendly.