Add a note about the problem with forkProcess, for the time being.
The stopped threads are /not/ garbage collected! This behaviour may change in
future releases.
The stopped threads are /not/ garbage collected! This behaviour may change in
future releases.
+
+NOTE: currently, main threads are not stopped in the child process.
+To work around this problem, call 'forkProcessPrim' from the main thread.
-}
forkProcessPrim :: IO Int
-}
forkProcessPrim :: IO Int
{- | 'forkProcess' is a wrapper around 'forkProcessPrim' similar to the one found in
"Posix.forkProcess" which returns a Maybe-type. The child receives @Nothing@, the
parent @Just (pid::Int)@. In case of an error, an exception is thrown.
{- | 'forkProcess' is a wrapper around 'forkProcessPrim' similar to the one found in
"Posix.forkProcess" which returns a Maybe-type. The child receives @Nothing@, the
parent @Just (pid::Int)@. In case of an error, an exception is thrown.
+
+NOTE: currently, main threads are not stopped in the child process.
+To work around this problem, call 'forkProcess' from the main thread.
-}
forkProcess :: IO (Maybe Int)
-}
forkProcess :: IO (Maybe Int)