// // Handle signals. // We send ourselves a message (through the "self" service), so actual // actions happen on the normal event loop path. Note that another thread // may be picking up the message immediately. // static void handleSignals(int sig) { secnotice("SS", "signal received: %d", sig); if (kern_return_t rc = self_client_handleSignal(gMainServerPort, mach_task_self(), sig)) Syslog::error("self-send failed (mach error %d)", rc); }
// // Handle signals. // We send ourselves a message (through the "self" service), so actual // actions happen on the normal event loop path. Note that another thread // may be picking up the message immediately. // static void handleSignals(int sig) { SECURITYD_SIGNAL_RECEIVED(sig); if (kern_return_t rc = self_client_handleSignal(gMainServerPort, mach_task_self(), sig)) Syslog::error("self-send failed (mach error %d)", rc); }