Commit ee4be2d3 authored by thomasjm's avatar thomasjm
Browse files

Update changelog.md and add haddock

parent 4b4496ff
......@@ -139,10 +139,7 @@ createProcess_Internal fun
when mb_delegate_ctlc
startDelegateControlC
-- runInteractiveProcess() blocks signals around the fork().
-- Since blocking/unblocking of signals is a global state
-- operation, we better ensure mutual exclusion of calls to
-- runInteractiveProcess().
-- See the comment on runInteractiveProcess_lock
proc_handle <- withMVar runInteractiveProcess_lock $ \_ ->
c_runInteractiveProcess pargs pWorkDir pEnv
fdin fdout fderr
......@@ -175,6 +172,13 @@ createProcess_Internal fun
}
{-# NOINLINE runInteractiveProcess_lock #-}
-- | 'runInteractiveProcess' blocks signals around the fork().
-- Since blocking/unblocking of signals is a global state operation, we need to
-- ensure mutual exclusion of calls to 'runInteractiveProcess'.
-- This lock is exported so that other libraries which also need to fork()
-- (and also need to make the same global state changes) can protect their changes
-- with the same lock.
-- See https://github.com/haskell/process/pull/154.
runInteractiveProcess_lock :: MVar ()
runInteractiveProcess_lock = unsafePerformIO $ newMVar ()
......
# Changelog for [`process` package](http://hackage.haskell.org/package/process)
## Unreleased changes
## 1.6.5.2 *September 2019*
* Fix a potential privilege escalation issue (or, more precisely, privileges
not being dropped when this was the user's intent) where the groups of the
......@@ -9,6 +9,8 @@
* Bug fix: Prevent stripping undecodable bytes from environment variables
when in a non-unicode locale.
[#152](https://github.com/haskell/process/issues/152)
* Expose `runInteractiveProcess_lock` in `System.Process.Internals`
[#154](https://github.com/haskell/process/pull/154)
## 1.6.5.1 *June 2019*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment