]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Main.hs
Code cleanup
[Rakka.git] / Main.hs
diff --git a/Main.hs b/Main.hs
index 8ea363baec82c90e24be4f3485e9cf8d2a269da4..78de22fad823e90529f0b5cd0948b33ebbea0dc1 100644 (file)
--- 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 ->