[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.
This commit is contained in:
Dmitrii Kuvaiskii
2019-09-24 20:44:26 -07:00
parent d83330c665
commit 5f106608fa
-6
View File
@@ -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;
}