mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Various minor cleanups (bug #931)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -339,8 +339,7 @@ int load_module(void)
|
||||
pthread_t thread;
|
||||
pthread_attr_t attr;
|
||||
snprintf((char *)qdir,sizeof(qdir)-1,"%s/%s",(char *)ast_config_AST_SPOOL_DIR,"outgoing");
|
||||
printf("%s\n",qdir);
|
||||
if (mkdir(qdir, 0700) && (errno != EEXIST)) {
|
||||
if (mkdir(qdir, 0700) && (errno != EEXIST)) {
|
||||
ast_log(LOG_WARNING, "Unable to create queue directory %s -- outgoing spool disabled\n", qdir);
|
||||
return 0;
|
||||
}
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include <asterisk/pbx.h>
|
||||
#include <asterisk/module.h>
|
||||
#include <asterisk/translate.h>
|
||||
#include <asterisk/options.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@@ -62,7 +63,8 @@ static void *autodial(void *ignore)
|
||||
int flags = fcntl(fd, F_GETFL);
|
||||
fd_set fds;
|
||||
fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
|
||||
ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Entered Wil-Calu fd=%d\n",fd);
|
||||
if(fd<0) {
|
||||
ast_log(LOG_WARNING, "Autodial: Unable to open file\n");
|
||||
pthread_exit(NULL);
|
||||
|
Reference in New Issue
Block a user