restore fork and exec