remote: fix pretty TODO failing to parse on old GHC

This commit is contained in:
sorki 2023-12-10 18:53:47 +01:00
parent 3eb346699b
commit 29f58f46e7

View File

@ -161,11 +161,10 @@ runDaemonSocket workerHelper postGreet sockFamily sockAddr k =
Network.Socket.Stream Network.Socket.Stream
Network.Socket.defaultProtocol Network.Socket.defaultProtocol
) )
(\lsock -> liftIO $ Network.Socket.close lsock) -- *> System.Directory.removeFile f) (\lsock -> liftIO $ Network.Socket.close lsock)
$ \lsock -> do $ \lsock -> do
-- ^^^^^^^^^^^^ -- TODO: the: (\lsock -> liftIO $ Network.Socket.close lsock *> System.Directory.removeFile f)
-- TODO: this: -------------------------------------------------------//////////// -- branch should really be (and even removeFile is currently omitted)
-- should really be
-- a file lock followed by unlink *before* bind rather than after close. If -- a file lock followed by unlink *before* bind rather than after close. If
-- the program crashes (or loses power or something) then a stale unix -- the program crashes (or loses power or something) then a stale unix
-- socket will stick around and prevent the daemon from starting. using a -- socket will stick around and prevent the daemon from starting. using a