From 72cd5e5eac8ebcbe69b0f12d3f13e2891a6edf3e Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Fri, 20 Jun 2008 23:14:01 +0000 Subject: [PATCH] Merged revisions 124451 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r124451 | tilghman | 2008-06-20 18:13:21 -0500 (Fri, 20 Jun 2008) | 14 lines Merged revisions 124450 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r124450 | tilghman | 2008-06-20 18:12:33 -0500 (Fri, 20 Jun 2008) | 6 lines 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) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@124452 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_rpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 1671d699e4..d45104ec11 100644 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -6800,7 +6800,7 @@ static void *rpt_master(void *config) } } - usleep(2000000); + sleep(2); } ast_config_destroy(cfg); pthread_exit(NULL);