diff --git a/kernel/syscall.c b/kernel/syscall.c index 682fdb08..b20ad197 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -306,7 +306,7 @@ rescan: if (empty) { ihk_mc_spinlock_unlock_noirq(&proc->ftn->lock); - return ECHILD; + return -ECHILD; } if (child) {