[asterisk-commits] tilghman: branch 1.4 r124450 - /branches/1.4/apps/app_rpt.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 20 18:12:34 CDT 2008


Author: tilghman
Date: Fri Jun 20 18:12:33 2008
New Revision: 124450

URL: http://svn.digium.com/view/asterisk?view=rev&rev=124450
Log:
usleep with a value over 1,000,000 is nonportable.  Changing to use sleep()
instead.  (closes issue #12814)
 Reported by: pputman
 Patches: 
       app_rtp_sleep.patch uploaded by pputman (license 81)

Modified:
    branches/1.4/apps/app_rpt.c

Modified: branches/1.4/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_rpt.c?view=diff&rev=124450&r1=124449&r2=124450
==============================================================================
--- branches/1.4/apps/app_rpt.c (original)
+++ branches/1.4/apps/app_rpt.c Fri Jun 20 18:12:33 2008
@@ -10547,7 +10547,7 @@
 			close(fd);
 			free(nodep);
 		}
-		usleep(2000000);
+		sleep(2);
 	}
 	ast_config_destroy(cfg);
 	pthread_exit(NULL);




More information about the asterisk-commits mailing list