Commit 62c27492 authored by Committed by tibbe
closeFdWith invokes callbacks only after the fd is closed.
Move callback invocation to after close. close must be run after the all backends are updated. Therefore the sequence is to update the backends, in the process getting the callbacks to invoke (actually just getting an IO action which when executed will execute the callbacks), call close, and finally update the Managers' callback tables for the fd and execute the callbacks.
Showing with 19 additions and 13 deletions