X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Main.hs;h=430fdfc62d1281f5e23d6a78344ffde065c37df8;hb=995c5125353483fa7d580226efa1e6dadaaab3b1;hp=8ea363baec82c90e24be4f3485e9cf8d2a269da4;hpb=57f65ea30348628d11568e165550effc919d0a2d;p=Rakka.git diff --git a/Main.hs b/Main.hs index 8ea363b..430fdfc 100644 --- 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 ->