#communication #mach #child-process #macos #exchange #port #perfrecord

perfrecord-mach-ipc-rendezvous

A subset of the ipc-channel mach functionality to establish two-way communication and exchange the mach_task_self port

3 unstable releases

0.2.1 Dec 3, 2021
0.2.0 Jun 1, 2020
0.1.0 May 28, 2020

#81 in macOS and iOS APIs

Download history 8/week @ 2024-07-26 5/week @ 2024-08-02 1/week @ 2024-08-16 1/week @ 2024-08-30 17/week @ 2024-09-20 4/week @ 2024-09-27

113 downloads per month
Used in perfrecord

MIT/Apache

460KB
15K SLoC

perfrecord-mach-ipc-rendzvous

This crate has some code that allows establishing two-way mach communication between a parent process and a child process.

This code was originally written by pcwalton for ipc-channel. I needed some extra functionality to be able to send raw ports, namely mach_task_self(), so I forked the code. I may also remove large pieces of functionality that I don't need, so that the size of the perfrecord-preload library gets reduced.

This is a separate crate, rather than just a mod inside perfrecord, so that it can also be used by perfrecord-preload.

Dependencies

~245–360KB