[asterisk-commits] mnicholson: branch group/res_fax r237917 - /team/group/res_fax/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 5 15:42:43 CST 2010
Author: mnicholson
Date: Tue Jan 5 15:42:40 2010
New Revision: 237917
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=237917
Log:
Write one extra byte to the trigger pipe so that the read function will return NULL.
Modified:
team/group/res_fax/res/res_fax_spandsp.c
Modified: team/group/res_fax/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/res_fax/res/res_fax_spandsp.c?view=diff&rev=237917&r1=237916&r2=237917
==============================================================================
--- team/group/res_fax/res/res_fax_spandsp.c (original)
+++ team/group/res_fax/res/res_fax_spandsp.c Tue Jan 5 15:42:40 2010
@@ -186,7 +186,9 @@
usleep(SPANDSP_FAX_POLL_TIME);
}
+ /* trigger the read function to return NULL */
s->state = AST_FAX_STATE_COMPLETE;
+ write(p->trigger_pipe[1], &byte, 1);
return NULL;
}
More information about the asterisk-commits
mailing list