readProcess ... (exit 11): failed
When one haskell script (here Parent.hs) runs another script (Child.hs), it fails at some point with an error:
Parent.hs: readProcess: ./Child.hs "param1" "param2" ... "paramN" (exit 11): failed
Details:
I have a set of haskell scripts. Each script has following interpreter spec as the first line: {{{ #!/usr/bin/env runghc }}} These scripts manage some Java building process. Child.hs is long-running. It can run for a few hours. It builds a Java application, runs tests on it. About once a week the parent script fails with the error above. I use the script about 2-5 times a day.
My system is Ubuntu 8.04 (Hardy Heron). I installed GHC 6.10.3 locally, I also have GHC 6.8.2 installed from the Ubuntu repositories.
Besides the problem itself, it is not clear what "exit 11" means.