mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
don't close standard file descriptors (<=2)
This commit is contained in:
parent
cd3ef764c3
commit
eabac9fa79
1 changed files with 2 additions and 1 deletions
|
@ -506,7 +506,8 @@ static void* vcpu_loop(struct kvm_run *run)
|
|||
unsigned data = *((unsigned*)((size_t)run+run->io.data_offset));
|
||||
uhyve_close_t* uhyve_close = (uhyve_close_t*) (guest_mem+data);
|
||||
|
||||
uhyve_close->ret = close(uhyve_close->fd);
|
||||
if (uhyve_close->ret > 2)
|
||||
uhyve_close->ret = close(uhyve_close->fd);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue