Writing daemon in objective c

♀尐吖头ヾ 提交于 2019-12-08 13:25:03

问题


I need to write a daemon, much like windows service on os x using objective c. Can anyone point to some sample? or guide me about how to do this?


回答1:


It's best to write your program in a way that lets it be run in the foreground, and then use external tools and techniques (such as OS X's launchd) to run them detached. This makes your program easier to test and integrate.



来源:https://stackoverflow.com/questions/1840162/writing-daemon-in-objective-c

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