Save environment snapshot and use at fork/exec
am: 1488ff8aa3

Change-Id: I904562490ccc66831a4513864719019bd4b761ad