MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / kill_worker

Function kill_worker

src/core/impl/system.cpp:576–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574 }
575
576 void kill_worker() override {
577 if (m_worker_pid) {
578 CHECK_SYS_ERR(kill(m_worker_pid, SIGKILL));
579 auto w = waitpid(m_worker_pid, nullptr, 0);
580 CHECK_SYS_ERR(w);
581 mgb_assert(w == m_worker_pid);
582 m_worker_pid = 0;
583 clear_sock_fd();
584 }
585 }
586
587public:
588 ~TimedFuncInvokerImpl() {

Callers 3

invokeFunction · 0.85
watcher_implFunction · 0.85
system.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected