It seems the write returns errors as a matter of course when unmounting.

geesefs-0-30-9
Aaron Jacobs 2015-07-27 15:40:11 +10:00
parent 20a01b67ef
commit ef3d11e2b1
1 changed files with 4 additions and 1 deletions

View File

@ -480,7 +480,10 @@ func (c *Connection) Reply(ctx context.Context, opErr error) {
// Send the reply to the kernel.
replyMsg := kernelResponse(m.Header().Unique, op, opErr, c.protocol)
if err := c.writeMessage(replyMsg); err != nil {
log.Fatalf("writeMessage: %v", err)
if c.errorLogger != nil {
c.errorLogger.Printf("writeMessage: %v", err)
}
return
}
}