mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-13 06:50:39 -08:00
(child_setup): Check out==err when relocating fds.
This commit is contained in:
parent
58732bd4aa
commit
3e9367e7de
1 changed files with 7 additions and 2 deletions
|
|
@ -646,8 +646,13 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
|
|||
started with its standard in, out, or error closed, as might
|
||||
happen under X. */
|
||||
in = relocate_fd (in, 3);
|
||||
out = relocate_fd (out, 3);
|
||||
err = relocate_fd (err, 3);
|
||||
if (out == err)
|
||||
err = out = relocate_fd (out, 3);
|
||||
else
|
||||
{
|
||||
out = relocate_fd (out, 3);
|
||||
err = relocate_fd (err, 3);
|
||||
}
|
||||
|
||||
close (0);
|
||||
close (1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue