!3264 fix begetctl codecheck

Merge pull request !3264 from nianyuu/master
This commit is contained in:
openharmony_ci 2024-10-17 06:17:30 +00:00 committed by Gitee
commit d9296d76f0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 0 additions and 3 deletions

View File

@ -53,13 +53,11 @@ char g_isSetTerminal = 0;
void demoExit(void)
{
BShellEnvDestory(GetShellHandle());
if (g_shellPid != 0) {
#ifndef STARTUP_INIT_TEST
kill(g_shellPid, SIGKILL);
#endif
}
BEGET_CHECK(g_isSetTerminal == 0, tcsetattr(0, TCSAFLUSH, &g_terminalState));
}
#define CMD_PATH "/system/bin/paramshell"

View File

@ -25,7 +25,6 @@ static BShellHandle g_handle = NULL;
struct termios terminalState;
static void signalHandler(int signal)
{
tcsetattr(0, TCSAFLUSH, &terminalState);
demoExit();
exit(0);
}