Roger Pau Monne
2012-Apr-10 14:41 UTC
[PATCH] libxl: remove poller from list in libxl__poller_get
Remove poller from the list once it has been requested. To be merged with Ian Jackson series. Signed-off-by: Roger Pau Monne <roger.pau@citrix.com> CC: Ian Jackson <ian.jackson@citrix.com> --- tools/libxl/libxl_event.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/tools/libxl/libxl_event.c b/tools/libxl/libxl_event.c index dcd5802..91b1bb1 100644 --- a/tools/libxl/libxl_event.c +++ b/tools/libxl/libxl_event.c @@ -1050,8 +1050,10 @@ libxl__poller *libxl__poller_get(libxl_ctx *ctx) int rc; libxl__poller *p = LIBXL_LIST_FIRST(&ctx->pollers_idle); - if (p) + if (p) { + LIBXL_LIST_REMOVE(p, entry); return p; + } p = malloc(sizeof(*p)); if (!p) { -- 1.7.7.5 (Apple Git-26)
Ian Jackson
2012-Apr-24 17:40 UTC
Re: [PATCH] libxl: remove poller from list in libxl__poller_get
Roger Pau Monne writes ("[Xen-devel] [PATCH] libxl: remove poller from list in libxl__poller_get"):> Remove poller from the list once it has been requested. To be merged with Ian > Jackson series.This has indeed now been committed as part of my series. Ian.