how to terminate an external program after timeout?
marlowsd at gmail.com
Thu Sep 9 07:37:48 EDT 2010
On 09/09/2010 10:39, Christian Maeder wrote:
> Christian Maeder schrieb:
>> we call from our haskell application the metis prover via
>> System.Process.readProcessWithExitCode "metis" filename ""
>> However, we are not able to get rid of this process if metis does not
>> terminate by itself. In particular, wrapping this call into a
>> System.Timeout.timeout does not work.
> timeout works so far as it is possible to start another action, but the
> continuing metis process still blocks the whole system.
>> Any suggestions how we should handle this ideally portably but first of
>> all under unix. (ghc-6.12.3)
Take a look at the timeout program in GHC's test suite:
More information about the Glasgow-haskell-users