mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-03 15:39:36 +00:00
[Pal/Linux-SGX] Convert UNIX error code to PAL on ocall_create_process() fail
This commit is contained in:
committed by
Michał Kowalczyk
parent
6c8321b1ca
commit
1a32abc189
@@ -241,8 +241,8 @@ int _DkProcessCreate(PAL_HANDLE* handle, const char* uri, const char** args) {
|
||||
nargs++;
|
||||
|
||||
ret = ocall_create_process(uri, nargs, args, &stream_fd, &child_pid);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (IS_ERR(ret))
|
||||
return unix_to_pal_error(ERRNO(ret));
|
||||
|
||||
PAL_HANDLE child = malloc(HANDLE_SIZE(process));
|
||||
SET_HANDLE_TYPE(child, process);
|
||||
|
||||
Reference in New Issue
Block a user