Data exchange between daemon and launch agent

无人久伴 提交于 2019-12-11 07:44:40

问题


Mac OS X Snow Leopard and Lion. I have a daemon (which runs from root) and launch agent which runs from current user. How can daemon request data (or send command) to launch agent?


回答1:


If you want to achieve simple IPC between the daemon and agent, refer to my answer here : OS X - Communication between launch daemon and launch agent.

Make sure to set up this socket-based communication on separate threads, so as not to interrupt the flow of your program.



来源:https://stackoverflow.com/questions/7375785/data-exchange-between-daemon-and-launch-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!