| 131 | } |
| 132 | |
| 133 | int main(int argc, char ** argv) { |
| 134 | for (int vpid{0}; vpid < 3; ++vpid) { |
| 135 | pid_t pid = fork(); |
| 136 | if (pid == 0) { |
| 137 | /* send SIGHUP to me if parent dies. */ |
| 138 | prctl(PR_SET_PDEATHSIG, SIGHUP); |
| 139 | StoreRun(vpid); |
| 140 | exit(0); |
| 141 | } |
| 142 | } |
| 143 | sleep(1000); |
| 144 | |
| 145 | return 0; |
| 146 | } |
| 147 |
nothing calls this directly
no test coverage detected