Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proccontrol: fix double-increment while erasing a dead process
In the attach loop over waitfor_startup(), processes which fail are erased from the set. However, the iterator was getting incremented again, which will skip the next process or even cause undefined behavior if already at the end of the list. With GCC 6.2.1, that UB manifested as an infinite loop on a self- referential rbtree node. The simple solution is to `continue` the loop after `erase(i++)`, as is done in many other places with this same pattern.
- Loading branch information