MachSendRight are expensive to copy, since it calls into the kernel. We generally don't want to do that by accident. We should make MachSendRight move-only, and switch callers to use the existing 'copySendRight' function where they do want a duplicate.
This extends to all the handle types that should unify their interface: UnixFileDescriptor Win32Handle MachSendRight If the copy constructor should be removed, the interface should be the same for all so that generic code can be written. E.g. ...::copy() or ...::duplicate()
<rdar://problem/110431180>
Pull request: https://github.com/WebKit/WebKit/pull/14771
maybe bug 258608 needs to be addressed before landing the patch
Committed 266327@main (aeb697fb2c06): <https://commits.webkit.org/266327@main> Reviewed commits have been landed. Closing PR #14771 and removing active labels.