Re: [Haskell] rawSystem unpredictable with signals

2006-07-06 Thread Mathew Mills
Ctrl-C sends signals to the entire process-group, in which case various race conditions may result. Have your experimented by killing just the child process with 'kill -INT '? On Thursday, July 06, 2006, at 11:15AM, John Goerzen <[EMAIL PROTECTED]> wrote: >On Thu, Jul 06, 2006 at 04:09:43PM +

Re: [Haskell] rawSystem unpredictable with signals

2006-07-06 Thread John Goerzen
On Thu, Jul 06, 2006 at 04:09:43PM +0200, Udo Stenzel wrote: > > 1) rawSystem returns ExitSuccess > > > > or > > > > 2) rawSystem raises an IOError saying the child terminated with a > > signal > > > > I am totally at a loss as to explain this difference in behavior. I > > would prefer it

Re: [Haskell] rawSystem unpredictable with signals

2006-07-06 Thread Udo Stenzel
John Goerzen wrote: > When I hit Ctrl-C while the child process is running, sometimes: > > 1) rawSystem returns ExitSuccess > > or > > 2) rawSystem raises an IOError saying the child terminated with a > signal > > I am totally at a loss as to explain this difference in behavior. I > woul

[Haskell] rawSystem unpredictable with signals

2006-07-04 Thread John Goerzen
Hi, I'm using System.Cmd.rawSystem in a program and have noticed a mysterious flaw: When I hit Ctrl-C while the child process is running, sometimes: 1) rawSystem returns ExitSuccess or 2) rawSystem raises an IOError saying the child terminated with a signal I am totally at a loss as to