MCPcopy Create free account
hub / github.com/Tencent/phxqueue / main

Function main

phxqueue/test/test_store_main.cpp:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int 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

Callers

nothing calls this directly

Calls 1

StoreRunFunction · 0.85

Tested by

no test coverage detected