[Haskell-cafe] Getting PID of a child process

Jason Dusek jason.dusek at gmail.com
Thu Oct 18 23:03:00 CEST 2012


Hi All,

Using `System.Process.runInteractiveProcess', I can start a process
and get a handle to it:

  runInteractiveProcess
   :: FilePath
   -> [String]
   -> Maybe FilePath
   -> Maybe [(String, String)]
   -> IO (Handle, Handle, Handle, ProcessHandle)

For diagnostic purposes, I'd like to print the PID of the
process attached to this handle -- how best to do that?

--
Jason Dusek
pgp // solidsnack // C1EBC57DC55144F35460C8DF1FD4C6C1FED18A2B



More information about the Haskell-Cafe mailing list