#communication #mach #process #child-process #macos #port #mach-task-self

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

#73 in macOS and iOS APIs

21 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–365KB