Removed listener_writeread function, inlining it into background_writeread (in preparation for support of disk acks).