add check_kill_gracefully case of vostest

This commit is contained in:
zhjc1124
2023-06-09 04:18:15 +00:00
committed by ob-robot
parent 5ac282e33e
commit b746c352e6

View File

@ -399,7 +399,7 @@ static int check_uid_before_start(const char *dir_path)
static void print_all_thread(const char* desc)
{
MPRINT("============= [%s]begin to show unstopped thread =============", desc);
MPRINT("============= [%s] begin to show unstopped thread =============", desc);
DIR *dir = opendir("/proc/self/task");
if (dir == NULL) {
MPRINT("fail to print all thread");
@ -421,12 +421,12 @@ static void print_all_thread(const char* desc)
if (len > 0 && name[len - 1] == '\n') {
name[len - 1] = '\0';
}
MPRINT("tid: %s, name: %s", tid, name);
MPRINT("[%s] detect unstopped thread, tid: %s, name: %s", desc, tid, name);
fclose(file);
}
}
closedir(dir);
MPRINT("============= [%s]finish to show unstopped thread =============", desc);
MPRINT("============= [%s] finish to show unstopped thread =============", desc);
}
extern "C" {