MCPcopy Create free account
hub / github.com/davmac314/dinit / init

Method init

dasynq/include/dasynq/kqueue.h:311–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 void init()
312 {
313 kqfd = kqueue();
314 if (kqfd == -1) {
315 throw std::system_error(errno, std::system_category());
316 }
317 try {
318 Base::init(this);
319 }
320 catch (...) {
321 close(kqfd);
322 throw;
323 }
324 }
325
326 ~kqueue_loop() noexcept
327 {

Callers

nothing calls this directly

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected