| 141 | } |
| 142 | |
| 143 | void |
| 144 | VirtualPidTable::refresh() |
| 145 | { |
| 146 | id_iterator i; |
| 147 | id_iterator next; |
| 148 | pid_t _real_pid = _real_getpid(); |
| 149 | |
| 150 | JASSERT(getpid() != -1); |
| 151 | |
| 152 | _do_lock_tbl(); |
| 153 | for (i = _idMapTable.begin(), next = i; i != _idMapTable.end(); i = next) { |
| 154 | next++; |
| 155 | if (isIdCreatedByCurrentProcess(i->first) |
| 156 | && _real_tgkill(_real_pid, i->second, 0) == -1) { |
| 157 | _idMapTable.erase(i); |
| 158 | } |
| 159 | } |
| 160 | _do_unlock_tbl(); |
| 161 | } |
| 162 | |
| 163 | pid_t |
| 164 | VirtualPidTable::getNewVirtualTid() |
no test coverage detected