Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Insert missing getErrno call #11

Merged
merged 1 commit into from

2 participants

@BardurArantsson

This fixes a build problem on Linux:

$ cabal build
Building simple-sendfile-0.2.9...
Preprocessing library simple-sendfile-0.2.9...
[1 of 3] Compiling Network.Sendfile.Types ( Network/Sendfile/Types.hs, dist_cqrs/build/Network/Sendfile/Types.o )
[2 of 3] Compiling Network.Sendfile.Linux ( dist_cqrs/build/Network/Sendfile/Linux.hs, dist_cqrs/build/Network/Sendfile/Linux.o )

Network/Sendfile/Linux.hsc:107:15: Not in scope: `errno'

@kazu-yamamoto kazu-yamamoto merged commit 2483017 into kazu-yamamoto:master
@kazu-yamamoto

Sorry for your inconvenience and thank you for your patch!

@kazu-yamamoto

New version is now Hackage. Thank you!

@BardurArantsson

No worries! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 7, 2012
  1. @BardurArantsson
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  Network/Sendfile/Linux.hsc
View
1  Network/Sendfile/Linux.hsc
@@ -104,6 +104,7 @@ sendloop dst src offp len hook = do
hook
-- Parallel IO manager use edge-trigger mode.
-- So, calling threadWaitWrite only when errnor is eAGAIN.
+ errno <- getErrno
when (errno == eAGAIN) $ threadWaitWrite dst
sendloop dst src offp left hook
Something went wrong with that request. Please try again.