aboutsummaryrefslogtreecommitdiff
path: root/src/internal/poll/sendfile_solaris.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/poll/sendfile_solaris.go')
-rw-r--r--src/internal/poll/sendfile_solaris.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/poll/sendfile_solaris.go b/src/internal/poll/sendfile_solaris.go
index 1ba0c8d064..ec675833a2 100644
--- a/src/internal/poll/sendfile_solaris.go
+++ b/src/internal/poll/sendfile_solaris.go
@@ -17,6 +17,9 @@ const maxSendfileSize int = 4 << 20
// SendFile wraps the sendfile system call.
func SendFile(dstFD *FD, src int, pos, remain int64) (written int64, err error, handled bool) {
+ defer func() {
+ TestHookDidSendFile(dstFD, src, written, err, handled)
+ }()
if err := dstFD.writeLock(); err != nil {
return 0, err, false
}