uti: Call terminate only when exit_group is called

Tracer tells McKernel side to call do_exit() in WIFSIGNALED case.

Change-Id: If85c6cbb4856036b406b11335f1384e57f26292d
This commit is contained in:
Masamichi Takagi
2018-08-31 19:26:37 +09:00
parent b7cdbd6c42
commit 4b3e58fd3d
2 changed files with 8 additions and 7 deletions

View File

@@ -3027,8 +3027,9 @@ create_tracer()
term_param[1] = uti_desc->tid;
term_param[3] = uti_desc->key;
code = st;
if (exited == 2 || // exit_group
WIFSIGNALED(st)) {
/* exit_group case. Note that killing-signal kills mcexec and tracer in terminate(),
so this won't be reached. */
if (exited == 2) {
code |= 0x0000000100000000;
}
term_param[2] = code;