Don't leave gaps in replies when skipping processes.
Don't leave gaps in replies when skipping processes.

The old code would always write the process information at the same
index as the process in the list of interesting processes. But the
loop could skip some of the processes (for instance, when a process
has died). That would leave gaps in the reply. So a separate
index for the replies needs to be maintained.

Change-Id: I565627f2adad8bc5266c48b1be1ba06d88a9a26d
Reviewed-on: http://review.couchbase.org/122821
Tested-by: Aliaksey Artamonau <ce14b1c16e0fd654f926118eb8addbec5aff4ffa@couchbase.com>
Reviewed-by: Steve Watanabe <0cfa60539d74abcbbecaf09c76ac8a543ff82c2b@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@couchbase.com>
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>

couchbase/sigar,couchbase/sigar