Bug 921165: allow ./profile.sh capture if only non-main processes are profiled
Merge pull request #314 from jld/profile-capture-nonmainproc

Bug 921165: allow ./profile.sh capture if only non-main processes are profiled