Re: [Linuxptp-users] Fw: “Resource temporarily unavailable” errors during flood ping test
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Keller, J. E <jac...@in...> - 2012-10-30 20:00:44
|
> -----Original Message----- > From: Stephan Gatzka [mailto:ste...@gm...] > Sent: Tuesday, October 30, 2012 12:35 PM > To: Richard Cochran > Cc: lin...@li... > Subject: Re: [Linuxptp-users] Fw: “Resource temporarily unavailable” > errors during flood ping test > > > >> --- a/sk.c > >> +++ b/sk.c > >> > >> } > >> if (errno == EINTR) { > >> try_again++; > >> - } else if (errno == EAGAIN) { > >> + } else if ((errno == EAGAIN ) || (errno == EWOULDBLOCK)) { > > > > This does not accomplish anything since: > > > > --- /usr/include/asm-generic/errno.h --- > > The man page for recvmsg suggest to check both just for portability. But > maybe the whole stuff is so much Linux dependent that it probably makes > no sense to distinguish both. > It is completely 100% Linux (of very recent kernels!) dependant. It makes no sense to attempt to be more portable because the interfaces for ptp and hwtimestamps are completely non-portable.... - Jake > Regards, > > Stephan |