[zion] Return proper code from PortCreate

This commit is contained in:
Drew Galbraith 2023-06-17 01:05:51 -07:00
parent 857b7fae03
commit bbc31a0d2b
1 changed files with 2 additions and 1 deletions

View File

@ -201,7 +201,8 @@ z_err_t ChannelRecv(ZChannelRecvReq* req) {
z_err_t PortCreate(ZPortCreateResp* resp) {
auto& proc = gScheduler->CurrentProcess();
auto port = MakeRefCounted<Port>();
return proc.AddNewCapability(port, ZC_WRITE | ZC_READ);
resp->port_cap = proc.AddNewCapability(port, ZC_WRITE | ZC_READ);
return Z_OK;
}
z_err_t PortSend(ZPortSendReq* req) {