MCPcopy Create free account
hub / github.com/apache/trafficserver / delay_method

Function delay_method

contrib/openssl/async_engine.c:225–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void *
226delay_method(void *arg)
227{
228 int signal_fd = (intptr_t)arg;
229 sleep(2);
230 char buf = DUMMY_CHAR;
231 if (write(signal_fd, &buf, sizeof(buf)) < 0) {
232 fprintf(stderr, "Failed to send signal to %d, errno=%d\n", signal_fd, errno);
233 } else {
234 fprintf(stderr, "Send signal to %d\n", signal_fd);
235 }
236 return NULL;
237}
238
239void
240spawn_delay_thread()

Callers

nothing calls this directly

Calls 1

writeFunction · 0.50

Tested by

no test coverage detected