Bug # 1973: Change write to ast_carefulwrite
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
c793ab62ff
commit
c5e44cc3cb
1 changed files with 2 additions and 1 deletions
3
cli.c
3
cli.c
|
@ -19,6 +19,7 @@
|
||||||
#include <asterisk/module.h>
|
#include <asterisk/module.h>
|
||||||
#include <asterisk/channel.h>
|
#include <asterisk/channel.h>
|
||||||
#include <asterisk/channel_pvt.h>
|
#include <asterisk/channel_pvt.h>
|
||||||
|
#include <asterisk/manager.h>
|
||||||
#include <asterisk/utils.h>
|
#include <asterisk/utils.h>
|
||||||
#include <asterisk/lock.h>
|
#include <asterisk/lock.h>
|
||||||
#include <sys/signal.h>
|
#include <sys/signal.h>
|
||||||
|
@ -42,7 +43,7 @@ void ast_cli(int fd, char *fmt, ...)
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vasprintf(&stuff, fmt, ap);
|
vasprintf(&stuff, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
write(fd, stuff, strlen(stuff));
|
ast_carefulwrite(fd, stuff, strlen(stuff), 100);
|
||||||
free(stuff);
|
free(stuff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue