So, lemme see if I understand you correctly: You have some sort of program running on macOS, aka the parent. The parent spawns a child process that runs an existing executable. That executable is built by someone else and you can’t modify it. That executable calls fsync. You want the parent to learn about this call. And arbitrarily delay the calling thread within the child. Until some point in the future, when the parent either: Allows the calling thread to continue into the kernel and run the fsync Or instructs the call fail with an error All of this has to work in a supported fashion, so no SPI and no disabling SIP. Is that right? Share and Enjoy—Quinn “The Eskimo!” @ Developer Technical Support @ Applelet myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Core OS
Tags: