syscall: set syscall_return before calling ptrace_syscall_exit

refs #944
This commit is contained in:
Tomoki Shirasawa
2017-09-26 14:29:02 +09:00
parent df3f388e09
commit e294db7e53

View File

@@ -10029,8 +10029,10 @@ long syscall(int num, ihk_mc_user_context_t *ctx)
}
#endif /* POSTK_DEBUG_TEMP_FIX_60 && POSTK_DEBUG_TEMP_FIX_56 */
if (cpu_local_var(current)->proc->ptrace) {
if (cpu_local_var(current)->proc->ptrace && l != -ENOSYS) {
ihk_mc_syscall_ret(ctx) = l;
ptrace_syscall_exit(cpu_local_var(current));
l = ihk_mc_syscall_ret(ctx);
}
#ifdef DISABLE_SCHED_YIELD