This project is mirrored from https://github.com/haskell/process. Pull mirroring updated .
  1. 10 Jul, 2012 2 commits
  2. 08 Feb, 2012 1 commit
    • basvandijk's avatar
      Fixed asynchronous exception bugs in readProcess and readProcessWithExitCode... · b5ee9088
      basvandijk authored and Simon Marlow's avatar Simon Marlow committed
      Fixed asynchronous exception bugs in readProcess and readProcessWithExitCode This patch fixes the following two bugs:
      
      1) If an asynchronous exception was thrown to the thread executing
         readProcess somewhere after createProcess was executed, the standard handles
         would not be closed anymore resulting in a "handle leak" so to speak.
      
         This is fixed by catching exceptions in the IO processing code and
         closing the standard handles when an exception occurs.
         Additionally, I also terminate the process and wait for its termination.
      
      2) If an asynchronous exception was thrown to the
         stdout/stderr-read-thread it did not execute the putMVar anymore
         resulting in a dead-lock when takeMVar was executed.
      
         This is fixed by properly catching exception in the read-thread
         and propagating them to the parent thread which will then handle
         them as described above.
      b5ee9088
  3. 25 Sep, 2011 1 commit
  4. 06 Jul, 2011 1 commit
  5. 23 Apr, 2011 1 commit
  6. 08 Apr, 2011 1 commit
  7. 17 Sep, 2010 1 commit
  8. 16 Sep, 2010 1 commit
  9. 19 May, 2010 1 commit
  10. 05 May, 2010 1 commit
  11. 21 Sep, 2009 1 commit
  12. 20 Sep, 2009 1 commit
  13. 22 Jan, 2009 1 commit
  14. 21 Jan, 2009 1 commit
  15. 12 Nov, 2008 1 commit
  16. 05 Nov, 2008 1 commit
  17. 24 Oct, 2008 1 commit
  18. 23 Oct, 2008 1 commit
  19. 20 Sep, 2008 1 commit
  20. 03 Sep, 2008 1 commit
  21. 31 Aug, 2008 1 commit
  22. 28 Aug, 2008 1 commit
  23. 24 Aug, 2008 3 commits
  24. 27 May, 2008 1 commit
  25. 23 May, 2008 1 commit
    • Simon Marlow's avatar
      Overhall System.Process · 9c553822
      Simon Marlow authored
             
       - fix #1780: pipes created by runInteractiveProcess are set
         close-on-exec by default
       
       - add a new, more general, form of process creation: createProcess
         Each of stdin, stdout and stderr may individually be taken
         from existing Handles or attached to new pipes.  Also it
         has a nicer API (as discussed on libraries@haskell.org).
       
       - add readProcess / readProcessWithExitCode, originally from Don
         Stewart's newpopen package.  These functions behave like C's
         popen().
      
       - Move System.Cmd.{system,rawSystem} into System.Process.  Later
         we can depecate System.Cmd.
       
       - Don't use O_NONBLOCK for pipes, as it can confuse the process
         attached to the pipe (requires a fix to GHC.Handle in the base
         package).
      
       - Provide a way to close all the file descriptors in the new
         process (see #1415)
      
       - add a couple more tests for the new features
      
       - bump the version to 2.0
      9c553822
  26. 13 Dec, 2007 1 commit
  27. 22 Oct, 2007 1 commit
  28. 18 Oct, 2007 2 commits
  29. 14 Sep, 2007 1 commit
  30. 24 Aug, 2007 1 commit
  31. 14 Aug, 2007 1 commit
  32. 05 Aug, 2007 2 commits
  33. 02 Jul, 2007 1 commit
  34. 06 Jun, 2007 1 commit
  35. 24 May, 2007 1 commit