mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
commit for nix patch
See PR #317 for more details. It's a modified version of that.
This commit is contained in:
parent
6bf63b7c00
commit
b62a61e48d
17 changed files with 129 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue