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 Cr

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

2012-01-12 Thread John Lato
> From: Brandon Allbery > > On Wed, Jan 11, 2012 at 16:26, Andr? Scholz wrote: > >> (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

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 wrote: > (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

[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 termin