[Pal/Linux-SGX] Convert UNIX error code to PAL on ocall_create_process() fail

This commit is contained in:
Dmitrii Kuvaiskii
2020-11-23 01:17:38 +01:00
committed by Michał Kowalczyk
parent 6c8321b1ca
commit 1a32abc189
+2 -2
View File
@@ -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);