X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.c;h=e8f63241a653ba58ab78c9d64122ad7402c399f6;hb=43454d6c60e8f2d0d7d6208ec2436c55a6a67a0c;hp=f2963a1b0f954468d1422177ab9d457cc2fd019a;hpb=3576736bac485d8f04b2fc4f6b5cfcef7576d741;p=yaz-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index f2963a1..e8f6324 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. - * - * $Id: eventl.c,v 1.17 2007-11-30 11:44:47 adam Exp $ */ /** @@ -31,6 +29,7 @@ #include #include #include +#include #include "eventl.h" #include "session.h" #include @@ -139,15 +138,9 @@ int iochan_event_loop(IOCHAN *iochans) } else { - /* Destroy the first member in the chain, and try again */ - association *assoc = (association *)iochan_getdata(*iochans); - COMSTACK conn = assoc->client_link; - - cs_close(conn); - destroy_association(assoc); - iochan_destroy(*iochans); - yaz_log(log_level, "error select, destroying iochan %p", - *iochans); + yaz_log(YLOG_WARN|YLOG_ERRNO, "yaz_poll"); + xfree(fds); + continue; } } now = time(0); @@ -217,6 +210,7 @@ int iochan_event_loop(IOCHAN *iochans) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab