提交 7a0bc97b authored 作者: Brian West's avatar Brian West

FSCORE-534

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16482 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 19143d91
......@@ -44,6 +44,7 @@
#endif
#include <switch.h>
#include <switch_version.h>
#include "private/switch_core_pvt.h"
/* pid filename: Stores the process id of the freeswitch process */
......@@ -321,6 +322,7 @@ int main(int argc, char *argv[])
"\t-g [group] -- specify group to switch to\n"
#endif
"\t-help -- this message\n"
"\t-version -- print the version and exit\n"
#ifdef HAVE_SETRLIMIT
"\t-waste -- allow memory waste\n"
"\t-core -- dump cores\n"
......@@ -464,6 +466,13 @@ int main(int argc, char *argv[])
nf++;
known_opt++;
}
if (local_argv[x] && !strcmp(local_argv[x], "-version")) {
fprintf(stdout, "FreeSWITCH version: %s\n", SWITCH_VERSION_FULL);
return 0;
known_opt++;
}
#endif
#ifdef HAVE_SETRLIMIT
if (local_argv[x] && !strcmp(local_argv[x], "-core")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论