File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
hnix-store-remote/src/System/Nix/Store Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments