Searched refs:save_stdout (Results 1 – 3 of 3) sorted by relevance
219 int save_stdout = 0; in run_pipeline() local244 if ((save_stdout = dup(STDOUT_FILENO)) < 0) in run_pipeline()297 if (dup2(save_stdout, STDOUT_FILENO) < 0) { in run_pipeline()302 if (close(save_stdout) < 0) { in run_pipeline()364 int save_stdout = dup(1); in run_pipeline() local410 else if (dup2(save_stdout, 1) < 0) in run_pipeline()
1903 int save_stdout = (stdout_fd != 1) ? dup (1): 1; in child_execute_job() local1908 if (save_stdout < 0) in child_execute_job()1914 if (save_stdout != 1) in child_execute_job()1915 CLOSE_ON_EXEC (save_stdout); in child_execute_job()1944 if (dup2 (save_stdout, 1) != 1) in child_execute_job()1947 close (save_stdout); in child_execute_job()
320 int save_stdout = dup(1); in html_system() local324 if (redirect_stdout && save_stdout > 1 && fdnull > 1) in html_system()331 dup2(save_stdout, 1); in html_system()337 close(save_stdout); in html_system()