From 2cdb662022a7427f9eff569fc211b1aed6f632ec Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 3 Mar 2012 22:09:31 -0800 Subject: [PATCH] rustdoc: Remove some bogus error handling around process spawning --- src/rustdoc/markdown_writer.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/rustdoc/markdown_writer.rs b/src/rustdoc/markdown_writer.rs index 486c40b5941f..eabca1ea0fd1 100644 --- a/src/rustdoc/markdown_writer.rs +++ b/src/rustdoc/markdown_writer.rs @@ -73,10 +73,8 @@ fn pandoc_writer(config: config::config) -> writer { pandoc_cmd, pandoc_args, none, none, pipe_in.in, pipe_out.out, pipe_err.out); - if pid != -1 as ctypes::pid_t { - let writer = io::fd_writer(pipe_in.out, false); - writer.write_str(markdown); - } + let writer = io::fd_writer(pipe_in.out, false); + writer.write_str(markdown); os::close(pipe_in.in); os::close(pipe_out.out); @@ -85,10 +83,6 @@ fn pandoc_writer(config: config::config) -> writer { os::close(pipe_out.in); os::close(pipe_err.in); - if pid == -1 as ctypes::pid_t { - fail "failed to run pandoc"; - } - let status = run::waitpid(pid); #debug("pandoc result: %i", status); if status != 0 {