[Mono-bugs] [Bug 682859] New: System.Diagnostics.ProcessStartInfo environment variable sticky between process invocations
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Mar 26 14:28:21 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=682859
https://bugzilla.novell.com/show_bug.cgi?id=682859#c0
Summary: System.Diagnostics.ProcessStartInfo environment
variable sticky between process invocations
Classification: Mono
Product: Mono: Class Libraries
Version: 2.10.x
Platform: x86-64
OS/Version: UNIX Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: arx.sales at verizon.net
QAContact: mono-bugs at lists.ximian.com
Found By: Component Test
Blocker: Yes
Description of Problem:
using different instances of System.Diagnostics.ProcessStartInfo with different
environment variable settings doesn't work. In other words, with
ProcessStartInfo environment variable set to different values has no effect
between Process invocations (i.e. Process.Start(startInfo)).
Steps to reproduce the problem:
1. produce 2 instances of ProcessStartInfo, say with
processStartInfo1.EnvironmentVariables["Display"] = ":10"
processStartInfo2.EnvironmentVariables["Display"] = ":11"
2. Using the above example,
process1.Start(processStartInfo1)
and
process2.Start(processStartInfo2)
Actual Results:
both processes will point to the same DISPLAY because the environments for both
processes say DISPLAY=:10
Expected Results:
process1's enviroment variable value for DISPLAY should be :10
process2's environment variable value for DISPLAY should be :11
How often does this happen?
Consistently, everytime
Additional Information:
In addition to the environment variable, the following items were also set
during test conditions:
processStartInfo1 = new ProcessStartInfo(appName, appArgs);
processStartInfo1.WorkingDirectory = appDir;
processStartInfo1.RedirectStandardInput = true;
processStartInfo1.RedirectStandardOutput = true;
processStartInfo1.RedirectStandardError = true;
processStartInfo1.UseShellExecute = false;
and
processStartInfo2 = new ProcessStartInfo(appName, appArgs);
processStartInfo2.WorkingDirectory = appDir;
processStartInfo2.RedirectStandardInput = true;
processStartInfo2.RedirectStandardOutput = true;
processStartInfo2.RedirectStandardError = true;
processStartInfo2.UseShellExecute = false;
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list