From: Tilghman Lesher Date: Fri, 20 Jun 2008 23:12:33 +0000 (+0000) Subject: usleep with a value over 1,000,000 is nonportable. Changing to use sleep() X-Git-Tag: 1.4.22-rc1~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bcc02490f0cd1d597ca04267e0d489d563d309c;p=thirdparty%2Fasterisk.git 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.4@124450 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_rpt.c b/apps/app_rpt.c index 8465a26277..cc6c680dac 100644 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -10547,7 +10547,7 @@ char *this,*val; close(fd); free(nodep); } - usleep(2000000); + sleep(2); } ast_config_destroy(cfg); pthread_exit(NULL);