Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kehengzhong authored Jan 28, 2021
1 parent 7867c51 commit 4fa9c4e
Show file tree
Hide file tree
Showing 5 changed files with 2,164 additions and 12 deletions.
12 changes: 12 additions & 0 deletions src/epcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "ioevent.h"
#include "epwakeup.h"
#include "mlisten.h"
#include "epdns.h"

#ifdef UNIX

Expand Down Expand Up @@ -151,6 +152,8 @@ void * epcore_new (int maxfd, int dispmode)
epcore_mlisten_init(pcore);
epcore_wakeup_init(pcore);

pcore->dnsmgmt = dns_mgmt_init(pcore, NULL, NULL);

return pcore;
}

Expand All @@ -161,6 +164,8 @@ void epcore_clean (void * vpcore)

if (!pcore) return;

dns_mgmt_clean(pcore->dnsmgmt);

epcore_mlisten_clean(pcore);

epcore_stop_epump(pcore);
Expand Down Expand Up @@ -708,6 +713,13 @@ int epcore_global_iodev_getmon (void * vpcore, void * veps)
continue;
}

if (pdev->epump != NULL) continue;

if (pdev->bindtype != BIND_ALL_EPUMP) {
arr_delete(pcore->glbiodev_list, i); i--; num--;
}

pdev->epump = epump;
epump_iodev_add(epump, pdev);

if (epump->setpoll)
Expand Down
Loading

0 comments on commit 4fa9c4e

Please sign in to comment.