Save environment snapshot and use at fork/exec
am: 0e4a2f0d6b

Change-Id: I0f0ab67798266911cd8209dfdd9cde0cf371c815