mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
fix compatibility with unix-2.8
- breaking change: not compatible with unix-2.7
This commit is contained in:
parent
6b09d21b0b
commit
bae6456026
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import System.Posix.Process (createSession, forkProcess)
|
||||||
detach :: IO () -> IO Bool
|
detach :: IO () -> IO Bool
|
||||||
detach daemon = do
|
detach daemon = do
|
||||||
void $ forkProcess $ do
|
void $ forkProcess $ do
|
||||||
devnull <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags
|
devnull <- openFd "/dev/null" ReadWrite defaultFileFlags
|
||||||
void $ dupTo devnull stdInput
|
void $ dupTo devnull stdInput
|
||||||
void $ dupTo devnull stdOutput
|
void $ dupTo devnull stdOutput
|
||||||
void $ dupTo devnull stdError
|
void $ dupTo devnull stdError
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue