eval: Split running external code according to return type.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 13:31:46 +0000 (13:31 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 13:36:07 +0000 (13:36 +0000)
commit800244e4c76abb5092b1f265a1186d76cfba6f06
tree4a24b6c3a7a48b7ccb6353773f9367410dbdf934
parenta27fa75b6854fa3f75e34817cb0bf63646d644e4
eval: Split running external code according to return type.

Previously we were wrongly hiding stdout in some cases.

Fixes commit a48b05d35f0646322e8178ff10f8ed7af3e739aa
and commit 2ac1b84cb49ad04e27b4543436b0227153fbfb15.
src/eval.ml
src/eval.mli
src/run.ml