Merge pull request #31713 from YHNdnzj/pidref-equal
pidref: use fd_inode_same to compare pidfds
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user