feat: introduce mksh toybox to rootfs

Change-Id: I0a6e6f2962ca6904c858898eb93a5b2f93e85b69
This commit is contained in:
Guangyao Ma
2021-04-09 16:53:10 +08:00
committed by YOUR_NAME
parent 34f35524aa
commit 41c7689dfa
12 changed files with 283 additions and 37 deletions

View File

@@ -345,6 +345,11 @@ static void DoCmdExec(const char *cmdName, const char *cmdline, unsigned int len
exit(1);
}
ret = tcsetpgrp(STDIN_FILENO, getpgrp());
if (ret != 0) {
printf("tcsetpgrp failed, pgrpid %d, errno %d\n", getpgrp(), errno);
}
ret = execve((const char *)cmdParsed->paramArray[0], (char * const *)cmdParsed->paramArray, NULL);
if (ret == -1) {
perror("execve");