You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on rustpkg, I noticed that run::Process::new, and then calling finish_with_output, works strangely if you provide a Some value for the env field of the process options struct. My hypothesis at first was that on OS X, this was effectively extending the environment instead of overwriting the entire environment. However, I think there might be something more that's wrong. Code:
The resulting executable sometimes prints out "output: monkeybutts" but sometimes prints out just "output:". So the process I'm spawning doesn't use the environment at all, but adding an environment variable still makes it non-deterministically print the wrong result. This doesn't happen if I change the env field to None.
I'm investigating more, just wanted to write this down.
The text was updated successfully, but these errors were encountered:
After more exploration, I think the problem has to do with the Option<&[(~str, ~str)]> that's a field in the ProcessOptions struct. If I change it to a Option<~[(~str, ~str)]>, I don't see the non-deterministic behavior. I'll try to make a test case that just involves the option-of-a-vector-slice and not process spawning, and then close this.
Working on rustpkg, I noticed that
run::Process::new
, and then callingfinish_with_output
, works strangely if you provide aSome
value for theenv
field of the process options struct. My hypothesis at first was that on OS X, this was effectively extending the environment instead of overwriting the entire environment. However, I think there might be something more that's wrong. Code:The resulting executable sometimes prints out "output: monkeybutts" but sometimes prints out just "output:". So the process I'm spawning doesn't use the environment at all, but adding an environment variable still makes it non-deterministically print the wrong result. This doesn't happen if I change the
env
field toNone
.I'm investigating more, just wanted to write this down.
The text was updated successfully, but these errors were encountered: