# HG changeset patch # User Karl Heuer # Date 818821567 0 # Node ID e1b33f87545fe16ec1ab4bce4aa9f683cebbddc2 # Parent d7bb4093a950dc7d50d37a5eb5f2cb201b9ff0e3 (run_msdos_command): Support redirection of stderr. diff -r d7bb4093a950 -r e1b33f87545f src/msdos.c --- a/src/msdos.c Wed Dec 13 02:22:47 1995 +0000 +++ b/src/msdos.c Wed Dec 13 02:26:07 1995 +0000 @@ -2196,12 +2196,13 @@ /* 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 @@ dup2 (tempin, 0); dup2 (tempout, 1); - dup2 (tempout, 2); + dup2 (temperr, 2); result = spawnve (P_WAIT, argv[0], argv, envv);