when host mcexec down, syscall is hung up

This commit is contained in:
Tomoki Shirasawa
2014-12-04 11:17:29 +09:00
parent c1cf630a94
commit f1a86cfbd3

View File

@ -185,11 +185,15 @@ long do_syscall(struct syscall_request *req, ihk_mc_user_context_t *ctx,
long rc;
int islock = 0;
unsigned long irqstate;
struct process *proc = cpu_local_var(current);
dkprintf("SC(%d)[%3d] sending syscall\n",
ihk_mc_get_processor_id(),
req->number);
if(proc->nohost) // host is down
return -EPIPE;
if(req->number == __NR_exit_group ||
req->number == __NR_gettid ||
req->number == __NR_kill){ // interrupt syscall