From: Tilghman Lesher Date: Fri, 20 Jun 2008 23:13:21 +0000 (+0000) Subject: Merged revisions 124450 via svnmerge from X-Git-Tag: 1.6.2.0-beta1~1924 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2bec8275361f7018bbf163a7c08b19081703e97e;p=thirdparty%2Fasterisk.git 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/trunk@124451 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 0a8ee0053d..146ee72d43 100644 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -13103,7 +13103,7 @@ char *this,*val; close(fd); ast_free(nodep); } - usleep(2000000); + sleep(2); } ast_config_destroy(cfg); pthread_exit(NULL);