diff --git a/tractor/_child.py b/tractor/_child.py index adad3c5..b4d1d60 100644 --- a/tractor/_child.py +++ b/tractor/_child.py @@ -3,11 +3,4 @@ import trio import cloudpickle if __name__ == "__main__": - job = cloudpickle.load(sys.stdin.detach()) - - try: - result = trio.run(job) - cloudpickle.dump(sys.stdout.detach(), result) - - except BaseException as err: - cloudpickle.dump(sys.stdout.detach(), err) \ No newline at end of file + trio.run(cloudpickle.load(sys.stdin.buffer))