• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What is eating stderr from Privileged Helper Tool?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: What is eating stderr from Privileged Helper Tool?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Debug-iphoneos
  • Next by Date: Re: What is eating stderr from Privileged Helper Tool?
  • Previous by thread: Re: XCode 4.5 from MacApp Store Not Intalling
  • Next by thread: Re: What is eating stderr from Privileged Helper Tool?
  • Index(es):
    • Date
    • Thread