From bae64560264bb5162c4756cea58f92c7ca5d64ab Mon Sep 17 00:00:00 2001 From: Ruifeng Xie Date: Sat, 30 Dec 2023 18:46:09 +0100 Subject: [PATCH] fix compatibility with unix-2.8 - breaking change: not compatible with unix-2.7 --- unix/Detach.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/Detach.hs b/unix/Detach.hs index c38ba8f..f929307 100644 --- a/unix/Detach.hs +++ b/unix/Detach.hs @@ -8,7 +8,7 @@ import System.Posix.Process (createSession, forkProcess) detach :: IO () -> IO Bool detach daemon = do void $ forkProcess $ do - devnull <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags + devnull <- openFd "/dev/null" ReadWrite defaultFileFlags void $ dupTo devnull stdInput void $ dupTo devnull stdOutput void $ dupTo devnull stdError