Re: Problem within a MoreSecurity helper tool
Re: Problem within a MoreSecurity helper tool
- Subject: Re: Problem within a MoreSecurity helper tool
- From: John Andersson <email@hidden>
- Date: Sat, 24 Apr 2004 12:54:50 +0200
Thanks a lot! That fixed it (I wired up the output to stderr, where
the rest of the tools output are being written to).
Brg
/John
2004-04-23 kl. 18.52 skrev Quinn:
Furthermore, my guess is that this is because you're sublaunching a
tool and that tool is printing to stdout. You need to fix this. The
best solution depends on whether you need to see the results from the
sublaunched tool. If you don't need to see the result, you should
wire up the tool's stdout to /dev/null. That is, just after the fork,
in the child, close stdout and open /dev/null.
If you do need to see the result, you should create a UNIX domain
socket and wire up the tool to that. This is exactly what
MoreSecurity does when the app launches the helper tool, so you can
use it for sample code.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.