site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcmSEgW7OjypHpeSHEOiJVctXZeh4AAC4B5s Thread-topic: Secure IPC question User-agent: Microsoft-Entourage/12.15.0.081119
pid_t pid; mach_port_t port; name_t name = "com.mycompany.myportname";
bootstrap_look_up(bootstrap_port, name, &port); pid_for_task(port, &pid); printf("the server pid is %d\n", pid);
Any ideas?
After examining the launchd source, it looks like I can do this with the launch.h API, but it would be very ugly (and brittle?). Are there any better ways? *********************************************************************** This e-mail and its attachments are confidential, legally privileged, may be subject to copyright and sent solely for the attention of the addressee(s). Any unauthorized use or disclosure is prohibited. Statements and opinions expressed in this e-mail may not represent those of Radialpoint. Le contenu de ce courriel est confidentiel, privilégié et peut être soumis à des droits d'auteur. Il est envoyé à l'intention exclusive de son ou de ses destinataires. Il est interdit de l'utiliser ou de le divulguer sans autorisation. Les opinions exprimées dans le présent courriel peuvent diverger de celles de Radialpoint. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tim Murison