Merge pull request #31713 from YHNdnzj/pidref-equal

pidref: use fd_inode_same to compare pidfds
This commit is contained in:
Mike Yuan
2024-03-12 14:15:36 +08:00
committed by GitHub
5 changed files with 33 additions and 15 deletions
+1 -1
View File
@@ -884,7 +884,7 @@ int pty_forward_new(
assert(f->input_fd >= 0);
same = inode_same_at(f->input_fd, NULL, f->output_fd, NULL, AT_EMPTY_PATH);
same = fd_inode_same(f->input_fd, f->output_fd);
if (same < 0)
return same;