summaryrefslogtreecommitdiff
path: root/src/Network.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2021-08-06 22:42:23 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2021-08-06 22:42:23 +0200
commitd722b2045d028e80786109947ceef1aaffa569eb (patch)
treeab4ce32f640c3f38ff6ba1f3f2e870afeb711ef1 /src/Network.hs
parentc1e61496f5c2826d897c96777906c8c9d083906c (diff)
Network: switch to safer withFdSocket call
Diffstat (limited to 'src/Network.hs')
-rw-r--r--src/Network.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network.hs b/src/Network.hs
index d64124e..f857ef9 100644
--- a/src/Network.hs
+++ b/src/Network.hs
@@ -250,7 +250,7 @@ startServer opt origHead logd' services = do
putMVar ssocket sock
setSocketOption sock ReuseAddr 1
setSocketOption sock Broadcast 1
- setCloseOnExecIfNeeded =<< fdSocket sock
+ withFdSocket sock setCloseOnExecIfNeeded
bind sock (addrAddress addr)
return sock