Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d0534df8
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d0534df8
编写于
1月 19, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-1207
上级
1eace47c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
7 deletion
+24
-7
src/dnode/src/dnodeSystem.c
src/dnode/src/dnodeSystem.c
+3
-0
src/os/inc/osSignal.h
src/os/inc/osSignal.h
+1
-1
src/os/src/windows/wSignal.c
src/os/src/windows/wSignal.c
+10
-3
tests/script/sh/deploy.bat
tests/script/sh/deploy.bat
+1
-1
tests/script/sh/exec.bat
tests/script/sh/exec.bat
+8
-1
tests/script/wtest.bat
tests/script/wtest.bat
+1
-1
未找到文件。
src/dnode/src/dnodeSystem.c
浏览文件 @
d0534df8
...
...
@@ -145,6 +145,8 @@ int32_t main(int32_t argc, char *argv[]) {
syslog
(
LOG_INFO
,
"Shut down TDengine service successfully"
);
dInfo
(
"TDengine is shut down!"
);
closelog
();
tsem_post
(
&
exitSem
);
return
EXIT_SUCCESS
;
}
...
...
@@ -170,4 +172,5 @@ static void sigintHandler(int32_t signum) {
// inform main thread to exit
tsem_post
(
&
exitSem
);
tsem_wait
(
&
exitSem
);
}
\ No newline at end of file
src/os/inc/osSignal.h
浏览文件 @
d0534df8
...
...
@@ -29,7 +29,7 @@ extern "C" {
#endif
#ifndef SIGHUP
#define SIGHUP 123
4
#define SIGHUP 123
0
#endif
#ifndef SIGCHLD
...
...
src/os/src/windows/wSignal.c
浏览文件 @
d0534df8
...
...
@@ -16,18 +16,25 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include <signal.h>
#include <windows.h>
void
taosSetSignal
(
int32_t
signum
,
FSignalHandler
sigfp
)
{
if
(
signum
==
SIGUSR1
)
return
;
signal
(
signum
,
sigfp
);
// SIGHUP doesn't exist in windows, we handle it in the way of ctrlhandler
if
(
signum
==
SIGHUP
)
{
SetConsoleCtrlHandler
((
PHANDLER_ROUTINE
)
sigfp
,
TRUE
);
}
else
{
signal
(
signum
,
sigfp
);
}
}
void
taosIgnSignal
(
int32_t
signum
)
{
if
(
signum
==
SIGUSR1
)
return
;
if
(
signum
==
SIGUSR1
||
signum
==
SIGHUP
)
return
;
signal
(
signum
,
SIG_IGN
);
}
void
taosDflSignal
(
int32_t
signum
)
{
if
(
signum
==
SIGUSR1
)
return
;
if
(
signum
==
SIGUSR1
||
signum
==
SIGHUP
)
return
;
signal
(
signum
,
SIG_DFL
);
}
tests/script/sh/deploy.bat
浏览文件 @
d0534df8
...
...
@@ -54,7 +54,7 @@ if %NODE% == 6 set NODE=7600
if
%NODE%
==
7
set
NODE
=
7700
if
%NODE%
==
8
set
NODE
=
7800
set
"fqdn="
rem
set "fqdn="
for
/f
"skip=1"
%%A
in
(
'wmic computersystem get caption'
)
do
if
not
defined
fqdn
set
"fqdn=
%%A
"
...
...
tests/script/sh/exec.bat
浏览文件 @
d0534df8
...
...
@@ -37,5 +37,12 @@ if %EXEC_OPTON% == start (
if
%EXEC_OPTON%
==
stop
(
rem echo wmic process where "name='taosd.exe' and CommandLine like '%%%NODE_NAME%%%'" list INSTANCE
wmic
process
where
"name='taosd.exe' and CommandLine like '
%%%NODE_NAME%%%
'"
call
terminate
>
NUL
2
>&
1
rem wmic process where "name='taosd.exe' and CommandLine like '%%%NODE_NAME%%%'" call terminate > NUL 2>&1
for
/f
"tokens=1 skip=1"
%%A
in
(
'wmic process where "name='
taosd
.exe
'" get processId '
)
do
(
rem echo taskkill /IM %%A
taskkill
/IM
%%A
>
NUL
2
>&
1
)
)
tests/script/wtest.bat
浏览文件 @
d0534df8
...
...
@@ -33,7 +33,7 @@ if exist %LOG_DIR% rmdir /s/q %LOG_DIR%
if
not
exist
%CFG_DIR%
mkdir
%CFG_DIR%
if
not
exist
%LOG_DIR%
mkdir
%LOG_DIR%
set
"fqdn="
rem
set "fqdn="
for
/f
"skip=1"
%%A
in
(
'wmic computersystem get caption'
)
do
if
not
defined
fqdn
set
"fqdn=
%%A
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录