close(): clear fd_priv_table

This commit is contained in:
Balazs Gerofi
2017-07-25 15:55:38 +09:00
parent 8a1d756cb1
commit 34363c2b68

View File

@ -3256,6 +3256,11 @@ SYSCALL_DECLARE(close)
ihk_mc_spinlock_unlock(&proc->mckfd_lock, irqstate);
rc = syscall_generic_forwarding(__NR_close, ctx);
}
if (fd < 256) {
thread->proc->fd_priv_table[fd] = NULL;
}
return rc;
}