Skip to content

Commit

Permalink
add a note about RTS ticker thread
Browse files Browse the repository at this point in the history
Closes redneb#3
  • Loading branch information
sorki committed Dec 19, 2023
1 parent 74616d2 commit c8c19de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions System/Linux/Namespaces.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ of the same process. The threaded RTS makes it is hard to predict what
OS thread will be used to run the haskell threads. Therefore, using this
module in such applications will result in unpredictable behavior.
Similarly, using this module in @ghci@ is problematic too.
/Note/: The RTS ticker thread may cause @unshare@ to fail as on some GHC
configurations it spawns its own thread using @clone3@ at the start of
a program. To disable it, @-V0@ can be passed to RTS options directly
or via cabal file as @ghc-options: -rtsopts "-with-rtsopts -V0"@.
Note that this can have undesired consequences so use with care,
see also https://github.com/redneb/hs-linux-namespaces/issues/3
-}

{-# LANGUAGE GeneralizedNewtypeDeriving #-}
Expand Down

0 comments on commit c8c19de

Please sign in to comment.