There should be an object Environ that lets you manipulate an abstract environment and then pass that to frysk.proc.Host's create child process. Not doing this causes the following: $ ./frysk/bindir/fhpd -sysroot / /usr/bin/printenv [0.0] Loaded executable file: /usr/bin/printenv (fhpd) run Attached to process 13167 running with this command: /usr/bin/printenv Running process 13167 (fhpd) LD_LIBRARY_PATH=//lib://usr/lib Task 13167 is exiting with status 0 notice the lack of environment variables.
Add support for process environment variables. * Environ.java: New file. * cni/Environ.cxx: New file. * Fork.java (spawn): Use Environ. * cni/Fork.cxx (spawn): Use Environ.