Re: [Haskell-cafe] How to terminate the process group of a process created with createProcess?

2012-01-12 Thread John Lato
From: Brandon Allbery allber...@gmail.com On Wed, Jan 11, 2012 at 16:26, Andr? Scholz andre.sch...@uni-bremen.dewrote: (on unix) creating a process A which spawns itself a subprocess B and terminating process A before it finishes leaves process B as a process on its own. This is because

Re: [Haskell-cafe] How to terminate the process group of a process created with createProcess?

2012-01-12 Thread André Scholz
Hello, On 12.01.2012 at 17:00 Brandon Allbery wrote: I need to go look at the implementation of System.Process, though; the documentation strongly implies that (a) it already creates a process group, System.Process-1.1.0.0 introduces the new field create_group :: Bool in the datatype

[Haskell-cafe] How to terminate the process group of a process created with createProcess?

2012-01-11 Thread André Scholz
Hello, (on unix) creating a process A which spawns itself a subprocess B and terminating process A before it finishes leaves process B as a process on its own. This is because terminateProcess sends the sigterm signal to the process only and not to its process group. Is there a way to

Re: [Haskell-cafe] How to terminate the process group of a process created with createProcess?

2012-01-11 Thread Brandon Allbery
On Wed, Jan 11, 2012 at 16:26, André Scholz andre.sch...@uni-bremen.dewrote: (on unix) creating a process A which spawns itself a subprocess B and terminating process A before it finishes leaves process B as a process on its own. This is because terminateProcess sends the sigterm signal to