]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Main.hs
new ditz issues
[Rakka.git] / Main.hs
diff --git a/Main.hs b/Main.hs
index 8ea363baec82c90e24be4f3485e9cf8d2a269da4..430fdfc62d1281f5e23d6a78344ffde065c37df8 100644 (file)
--- a/Main.hs
+++ b/Main.hs
@@ -95,7 +95,7 @@ options = [ Option ['p'] ["port"]
 
           , Option ['r'] ["rebuild-index"]
                    (NoArg OptRebuildIndex)
-                   "Rebuild the index database."
+                   "Rebuild the index database. (Only for debug purposes)"
 
           , Option ['h'] ["help"]
                    (NoArg OptHelp)
@@ -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 ->