From 4a2ad208749618fe2c08eb30c026ec9d7de76622 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Mon, 22 Sep 2008 10:18:19 +0000 Subject: [PATCH] *** empty log message *** --- mbuni/mmsc/mmsc.c | 2 +- mbuni/mmsc/mmsglobalsender.c | 4 ++-- mbuni/mmsc/mmsmobilesender.c | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mbuni/mmsc/mmsc.c b/mbuni/mmsc/mmsc.c index 0785b46..2b37244 100644 --- a/mbuni/mmsc/mmsc.c +++ b/mbuni/mmsc/mmsc.c @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) gwthread_join(r_thread); - sleep(2); /* Wait for them to die. */ + gwthread_sleep(2); /* Wait for them to die. */ mms_info(0, "mmsc", NULL, "Final cleanup..."); mms_cleanup_mmsc_settings(settings); /* Stop settings stuff and so on. */ diff --git a/mbuni/mmsc/mmsglobalsender.c b/mbuni/mmsc/mmsglobalsender.c index 70c5c73..a97748d 100644 --- a/mbuni/mmsc/mmsglobalsender.c +++ b/mbuni/mmsc/mmsglobalsender.c @@ -10,7 +10,7 @@ * This program is free software, distributed under the terms of * the GNU General Public License, with a few exceptions granted (see LICENSE) */ - +#include #include "mmsc.h" #define NMAX 256 @@ -487,7 +487,7 @@ void mbuni_global_queue_runner(int *rstop) if (cdr_thid >= 0) gwthread_join(cdr_thid); - sleep(2); + gwthread_sleep(2); gwlist_destroy(cdr_list, NULL); return; diff --git a/mbuni/mmsc/mmsmobilesender.c b/mbuni/mmsc/mmsmobilesender.c index 95e0f98..c595a09 100644 --- a/mbuni/mmsc/mmsmobilesender.c +++ b/mbuni/mmsc/mmsmobilesender.c @@ -13,6 +13,7 @@ */ #include "mmsc.h" #include +#include #include #define WAPPUSH_PORT 2948 @@ -490,9 +491,9 @@ void mbuni_mm1_queue_runner(int *rstop) settings->qfs->mms_queue_run(octstr_get_cstr(settings->mm1_queuedir), sendNotify, settings->queue_interval, settings->maxthreads, rstop); - sleep(2); /* Wait for it to die. */ + gwthread_sleep(2); /* Wait for it to die. */ http_caller_signal_shutdown(httpcaller); - sleep(2); + gwthread_sleep(2); http_caller_destroy(httpcaller); return; }