assistant: Fix a crash on startup by avoiding using forkProcess
authorJoey Hess <joeyh@joeyh.name>
Wed, 12 May 2021 19:08:03 +0000 (15:08 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 12 May 2021 19:08:03 +0000 (15:08 -0400)
commit947d2a10bcf80e74758f65b3cc3fd5ac1bff3fa8
tree73dfc6d002a25a78840ab93657835fc6d27c2c17
parentba7598dbabcac92de747bf10d2c26dd6a6572e63
assistant: Fix a crash on startup by avoiding using forkProcess

ghc 8.8.4 seems to have changed something that broke code that has been
successfully using forkProcess since 2012. Likely a change to GC internals.

Since forkProcess has never had clear documentation about how to
use it safely, avoid using it at all. Instead, when git-annex needs to
daemonize itself, re-run the git-annex command, in a new process group
and session.

This commit was sponsored by Luke Shumaker on Patreon.
Annex/Path.hs
Assistant.hs
CHANGELOG
Command/RemoteDaemon.hs
Utility/Daemon.hs
doc/bugs/internal_error__58___evacuate__58___strange_closure_type.mdwn
doc/bugs/internal_error__58___evacuate__58___strange_closure_type/comment_2_a5a7d09ab1bb5bb7e2d37f906b07552d._comment [new file with mode: 0644]