summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Utility/Lsof.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utility/Lsof.hs b/Utility/Lsof.hs
index dd2914427..2c312a461 100644
--- a/Utility/Lsof.hs
+++ b/Utility/Lsof.hs
@@ -48,6 +48,7 @@ queryDir path = query ["+d", path]
query :: [String] -> IO [(FilePath, LsofOpenMode, ProcessInfo)]
query opts =
withHandle StdoutHandle (createProcessChecked checkSuccessProcess) p $ \h -> do
+ fileEncoding h
parse <$> hGetContentsStrict h
where
p = proc "lsof" ("-F0can" : opts)