Преглед на файлове

[Pal/Linux-SGX] db_pipes.c: fix segfault due to redundant deletion of pipe

During Graphene initialization, a "server" pipe is created by the IPC thread.
Previously, upon app exit, Graphene's Linux-SGX PAL removed this named pipe.
However, this is not needed and led to occasional segfaults. (Note that Linux
PAL never had this code). This commit simply removes the offending code.
Dmitrii Kuvaiskii преди 6 години
родител
ревизия
2d937d394d
променени са 1 файла, в които са добавени 0 реда и са изтрити 7 реда
  1. 0 7
      Pal/src/host/Linux-SGX/db_pipes.c

+ 0 - 7
Pal/src/host/Linux-SGX/db_pipes.c

@@ -284,13 +284,6 @@ static int pipe_delete(PAL_HANDLE handle, int access) {
         }
     }
 
-    if (IS_HANDLE_TYPE(handle, pipesrv)) {
-        char buffer[108];
-        pipe_path(handle->pipe.pipeid, buffer, 108);
-        ocall_delete(buffer);
-        return 0;
-    }
-
     if (handle->pipe.fd == PAL_IDX_POISON)
         return 0;