What is eating stderr from Privileged Helper Tool?
What is eating stderr from Privileged Helper Tool?
- Subject: What is eating stderr from Privileged Helper Tool?
- From: Jerry Krinock <email@hidden>
- Date: Thu, 20 Sep 2012 10:47:28 -0700
I've written an app which invokes a Privileged Helper Tool, based on BetterAuthorizationSample but invoked via functions in the ServiceManagement framework. (App is not sandboxed, and I'm not using XPC because I'm still supporting Mac OS X 10.6.) When I test my app in Xcode, running in 10.8, stderr from the Helper Tool does not show up in the system Console.
Here is my Helper Tool's main…
int main(int argc, char **argv)
{
// TEST CODE
fprintf(stderr, "1333300 Helper is launched at %s\n", argv[0]) ;
fprintf(stderr, "1333301 Helper will sleep for 5 seconds.\n") ; sleep(5) ;
fprintf(stderr, "\007") ; // ASCII 'BEL'
…
}
When the demo app invokes my tool with that TEST CODE, there is 5 seconds of beachballing, which does not occur without the TEST CODE, so I know that code is running in the tool. But nothing is logged in Console.app, and no bells or system alert sounds.
If I run that tool in Terminal, I get the log messages and system beeps as expected.
What might be eating stderr in this situation?
Thanks,
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden