소스 검색

[Pal/Linux] Remove resetting of file offset after fork

Previously, DkReceiveHandle() reset the file offset in the child after
fork(). This is incorrect behavior, since the child must retain the file
offset the same as in the parent. This commit removes the resetting logic.
Dmitrii Kuvaiskii 6 년 전
부모
커밋
5f106608fa
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      Pal/src/host/Linux/db_streams.c

+ 0 - 6
Pal/src/host/Linux/db_streams.c

@@ -450,12 +450,6 @@ int _DkReceiveHandle(PAL_HANDLE hdl, PAL_HANDLE* cargo) {
             }
         }
 
-    if (IS_HANDLE_TYPE(handle, file)) {
-        ret = INLINE_SYSCALL(lseek, 3, handle->file.fd, 0, SEEK_SET);
-        if (!IS_ERR(ret))
-            handle->file.offset = ret;
-    }
-
     *cargo = handle;
     return 0;
 }