mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
!3264 fix begetctl codecheck
Merge pull request !3264 from nianyuu/master
This commit is contained in:
commit
d9296d76f0
@ -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"
|
||||
|
@ -25,7 +25,6 @@ static BShellHandle g_handle = NULL;
|
||||
struct termios terminalState;
|
||||
static void signalHandler(int signal)
|
||||
{
|
||||
tcsetattr(0, TCSAFLUSH, &terminalState);
|
||||
demoExit();
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user