---
** [tickets:#580] base: Add utilility function for poll() that handles EINTR**
**Status:** accepted
**Created:** Fri Sep 27, 2013 06:45 AM UTC by Anders Widell
**Last Updated:** Fri Sep 27, 2013 06:45 AM UTC
**Owner:** Anders Widell
Add utility functions for poll() and ppoll(), that handle the error case when
errno == EINTR. Handling of the error code EINTR from poll() requires more than
just a simple loop in the case when poll() is used with a time-out, since we
need to keep track of how long time we have waited so far, and subtract this
from the time-out time for the next call to poll(). By introducing an utility
function for this, we won't have to duplicate this code at all places where
poll() is used.
The poll() utility function is needed for the solution of ticket [#452], but a
separate ticket is created for it since the utility function is useful by
itself.
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets