]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
usleep with a value over 1,000,000 is nonportable. Changing to use sleep()
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 20 Jun 2008 23:12:33 +0000 (23:12 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 20 Jun 2008 23:12:33 +0000 (23:12 +0000)
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

apps/app_rpt.c

index 8465a262776eb411b5121543b350ed51e83908ba..cc6c680dac7487990f085cf8d0f770249bcad565 100644 (file)
@@ -10547,7 +10547,7 @@ char *this,*val;
                        close(fd);
                        free(nodep);
                }
-               usleep(2000000);
+               sleep(2);
        }
        ast_config_destroy(cfg);
        pthread_exit(NULL);