site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Aug 25, 2007, at 11:51 AM, Jordan K. Hubbard wrote: On Aug 25, 2007, at 11:41 AM, Finlay Dobbie wrote: On Aug 24, 2007, at 11:17 PM, Terry Lambert wrote: -- Steve Checkoway _______________________________________________ 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 Yes, but we were discussing the fragility of parsing tool output. OK, well, that's an easy discussion: Don't do that. popen of lsof will work, assuming you use the output format specifiers to prevent it from changing output format on you, or simply look at the found/not fond return value. The point of forcing you to write wrappers around standard tools instead of doing what the tool does is to ensure you that when the system is updated, you are guaranteed that the tools are updated at the same time that the kernel and other system components are updated, so your code will continue working, even if we change the system interface used by the tool. Jordan, unless I'm mistaken, you're saying don't do what Terry said to do. smime.p7s
participants (1)
-
Steve Checkoway