X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Main.hs;h=78de22fad823e90529f0b5cd0948b33ebbea0dc1;hp=8ea363baec82c90e24be4f3485e9cf8d2a269da4;hb=8631d8de8373ec8226d19019ae7cf3a1bf2e44e5;hpb=57f65ea30348628d11568e165550effc919d0a2d diff --git a/Main.hs b/Main.hs index 8ea363b..78de22f 100644 --- a/Main.hs +++ b/Main.hs @@ -267,7 +267,7 @@ withSystemLock lockfile = bracket lock' unlock' . const unlock' = closeFd withPidFile :: FilePath -> IO a -> IO a -withPidFile lockfile = bracket mkPid' (const delPid') . const +withPidFile lockfile = bracket_ mkPid' delPid' where mkPid' :: IO () mkPid' = withFile lockfile WriteMode $ \ h ->