Skip to content

Commit 29f58f4

Browse files
committed
remote: fix pretty TODO failing to parse on old GHC
1 parent 3eb3466 commit 29f58f4

File tree

1 file changed

+3
-4
lines changed
  • hnix-store-remote/src/System/Nix/Store

1 file changed

+3
-4
lines changed

hnix-store-remote/src/System/Nix/Store/Remote.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,10 @@ runDaemonSocket workerHelper postGreet sockFamily sockAddr k =
161161
Network.Socket.Stream
162162
Network.Socket.defaultProtocol
163163
)
164-
(\lsock -> liftIO $ Network.Socket.close lsock) -- *> System.Directory.removeFile f)
164+
(\lsock -> liftIO $ Network.Socket.close lsock)
165165
$ \lsock -> do
166-
-- ^^^^^^^^^^^^
167-
-- TODO: this: -------------------------------------------------------////////////
168-
-- should really be
166+
-- TODO: the: (\lsock -> liftIO $ Network.Socket.close lsock *> System.Directory.removeFile f)
167+
-- branch should really be (and even removeFile is currently omitted)
169168
-- a file lock followed by unlink *before* bind rather than after close. If
170169
-- the program crashes (or loses power or something) then a stale unix
171170
-- socket will stick around and prevent the daemon from starting. using a

0 commit comments

Comments
 (0)