Receive info data from child. */
| 160 | |
| 161 | /* Receive info data from child. */ |
| 162 | void receiveChildInfo(void) { |
| 163 | if (g_pserver->child_info_pipe[0] == -1) return; |
| 164 | |
| 165 | size_t cow; |
| 166 | monotime cow_updated; |
| 167 | size_t keys; |
| 168 | double progress; |
| 169 | childInfoType information_type; |
| 170 | |
| 171 | /* Drain the pipe and update child info so that we get the final message. */ |
| 172 | while (readChildInfo(&information_type, &cow, &cow_updated, &keys, &progress)) { |
| 173 | updateChildInfo(information_type, cow, cow_updated, keys, progress); |
| 174 | } |
| 175 | } |
no test coverage detected