summaryrefslogtreecommitdiff
path: root/src/sim/Process.py
diff options
context:
space:
mode:
authorMichael Adler <Michael.Adler@intel.com>2008-07-23 14:41:34 -0700
committerMichael Adler <Michael.Adler@intel.com>2008-07-23 14:41:34 -0700
commit5f42bfcd56c84f6fe938b88411265359fc702110 (patch)
treea075741ec0d18af15c7a4b1c4aef23091706b4f8 /src/sim/Process.py
parent2cd04fd6da67d874fd4e563ed05707a42ff0598f (diff)
downloadgem5-5f42bfcd56c84f6fe938b88411265359fc702110.tar.xz
process: separate stderr from stdout
- Add the option of redirecting stderr to a file. With the old behaviour, stderr would follow stdout if stdout was to a file, but stderr went to the host stderr if stdout went to the host stdout. The new default maintains stdout and stderr going to the host. Now the two can specify different files, but they will share a file descriptor if the name of the files is the same. - Add --output and --errout options to se.py to go with --input.
Diffstat (limited to 'src/sim/Process.py')
-rw-r--r--src/sim/Process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sim/Process.py b/src/sim/Process.py
index 37a27bf3b..81108dd70 100644
--- a/src/sim/Process.py
+++ b/src/sim/Process.py
@@ -34,7 +34,8 @@ class Process(SimObject):
type = 'Process'
abstract = True
input = Param.String('cin', "filename for stdin")
- output = Param.String('cout', 'filename for stdout/stderr')
+ output = Param.String('cout', 'filename for stdout')
+ errout = Param.String('cerr', 'filename for stderr')
system = Param.System(Parent.any, "system process will run on")
max_stack_size = Param.MemorySize('64MB', 'maximum size of the stack')