[svn-commits] mattf: branch tools/mattf/dahdi-datapath-events r7962 - /tools/team/mattf/dah...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jan 25 14:11:23 CST 2010
Author: mattf
Date: Mon Jan 25 14:11:22 2010
New Revision: 7962
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7962
Log: (empty)
Modified:
tools/team/mattf/dahdi-datapath-events/patlooptest.c
Modified: tools/team/mattf/dahdi-datapath-events/patlooptest.c
URL: http://svnview.digium.com/svn/dahdi/tools/team/mattf/dahdi-datapath-events/patlooptest.c?view=diff&rev=7962&r1=7961&r2=7962
==============================================================================
--- tools/team/mattf/dahdi-datapath-events/patlooptest.c (original)
+++ tools/team/mattf/dahdi-datapath-events/patlooptest.c Mon Jan 25 14:11:22 2010
@@ -101,13 +101,15 @@
for (x=0;x<bs;x++)
outbuf[x] = c1++;
+write_again:
res = write(fd,outbuf,bs);
if (res != bs)
{
- printf("Res is %d: %s\n", res, strerror(errno));
+ printf("W: Res is %d: %s\n", res, strerror(errno));
ioctl(fd, DAHDI_GETEVENT, &x);
printf("Event: %d\n", x);
- exit(1);
+ //goto write_again;
+ //exit(1);
}
if (skipcount)
@@ -118,10 +120,14 @@
continue;
}
+read_again:
res = read(fd, inbuf, bs);
if (res < bs) {
- printf("Res is %d\n", res);
- exit(1);
+ printf("R: Res is %d\n", res);
+ ioctl(fd, DAHDI_GETEVENT, &x);
+ printf("Event: %d\n", x);
+ //goto read_again;
+ //exit(1);
}
if (!setup) {
c = inbuf[0];
More information about the svn-commits
mailing list