summaryrefslogtreecommitdiff
path: root/Utility/Process.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-05-10 11:13:47 -0300
committerJoey Hess <joey@kitenet.net>2014-05-10 11:13:47 -0300
commiteb6e6fe11290971b37a18d9a78f6d9b78228c06f (patch)
tree5c7669b6ce12a8e7c95e918e69548de31eb4fba7 /Utility/Process.hs
parent6088df9105a10ef446cc236982c2e30857182a84 (diff)
parentd7ad05acaaf05c7af066c1d41f3e70e61a9bec96 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'Utility/Process.hs')
-rw-r--r--Utility/Process.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utility/Process.hs b/Utility/Process.hs
index 1945e4b9..549ae570 100644
--- a/Utility/Process.hs
+++ b/Utility/Process.hs
@@ -3,7 +3,7 @@
-
- Copyright 2012 Joey Hess <joey@kitenet.net>
-
- - Licensed under the GNU GPL version 3 or higher.
+ - License: BSD-2-clause
-}
{-# LANGUAGE CPP, Rank2Types #-}
@@ -31,6 +31,7 @@ module Utility.Process (
stdinHandle,
stdoutHandle,
stderrHandle,
+ processHandle,
devNull,
) where
@@ -313,6 +314,9 @@ bothHandles :: (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) -> (Han
bothHandles (Just hin, Just hout, _, _) = (hin, hout)
bothHandles _ = error "expected bothHandles"
+processHandle :: (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) -> ProcessHandle
+processHandle (_, _, _, pid) = pid
+
{- Debugging trace for a CreateProcess. -}
debugProcess :: CreateProcess -> IO ()
debugProcess p = do