diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-12-13 02:26:07 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-12-13 02:26:07 +0000 |
commit | 5d86fa0ec2c67a2bd14f29a35033301e31e982e2 (patch) | |
tree | 7072e13dda23390110d4183c0440811104d2b8b1 /src/msdos.c | |
parent | af77f042ffba8c3f08588a9fd30eaf5252f190e3 (diff) | |
download | emacs-5d86fa0ec2c67a2bd14f29a35033301e31e982e2.tar.gz |
(run_msdos_command): Support redirection of stderr.
Diffstat (limited to 'src/msdos.c')
-rw-r--r-- | src/msdos.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/msdos.c b/src/msdos.c index cff45ca3f94..075f8bfa50b 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -2196,12 +2196,13 @@ dos_ttcooked () /* Run command as specified by ARGV in directory DIR. - The command is run with input from TEMPIN and output to file TEMPOUT. */ + The command is run with input from TEMPIN, output to + file TEMPOUT and stderr to TEMPERR. */ int -run_msdos_command (argv, dir, tempin, tempout) +run_msdos_command (argv, dir, tempin, tempout, temperr) unsigned char **argv; Lisp_Object dir; - int tempin, tempout; + int tempin, tempout, temperr; { char *saveargv1, *saveargv2, **envv; char oldwd[MAXPATHLEN + 1]; /* Fixed size is safe on MSDOS. */ @@ -2272,7 +2273,7 @@ run_msdos_command (argv, dir, tempin, tempout) dup2 (tempin, 0); dup2 (tempout, 1); - dup2 (tempout, 2); + dup2 (temperr, 2); result = spawnve (P_WAIT, argv[0], argv, envv); |