proccontrol: fix another process erasure during attach 261/head
authorJosh Stone <jistone@redhat.com>
Mon, 21 Nov 2016 19:52:48 +0000 (11:52 -0800)
committerJosh Stone <jistone@redhat.com>
Mon, 21 Nov 2016 19:52:48 +0000 (11:52 -0800)
commitd7e310e4b1bdf7eee4dafab1553a89d6ea79717d
tree0d7e0b23c04d0448eca163730be9589cf370c127
parent80111056ea99daeac08bb211caa74734cd6394ac
proccontrol: fix another process erasure during attach

If a process initially failed to attach threads, a `pthrd_printf` was
indicating that it would try again, but the process was getting erased
from the set while incorrectly causing the iterator to double-increment.

Now the messages about "will try again" and "now an error" are changed
to simply report an immediate error, and it continus the loop after
process erasure to avoid incrementing the iterator again.
proccontrol/src/process.C