• 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
Re: We having fun yet with AuthorizationExecuteWithPrivileges?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: We having fun yet with AuthorizationExecuteWithPrivileges?


  • Subject: Re: We having fun yet with AuthorizationExecuteWithPrivileges?
  • From: Lloyd Sargent <email@hidden>
  • Date: Mon, 20 Aug 2001 08:38:29 -0500

Yah, that is the problem that I am experiencing - I don't want to wait for the tool to have to quit to start getting data that is less than 8K. <sigh>

So why does the tty get the data immediately and my Cocoa app have to wait 8K? Is there a way to change this behaviour (other than wait for the tool to quit?).

Okay, looks like I'm going to have to reinvent the wheel...

Cheers,

Lloyd

On Monday, August 20, 2001, at 01:25 AM, Thomas Fischer wrote:

read only blocks of a smaller size in a loop till eof on the pipe. i'm doing it with 400 bytes and it works great. this solution only works for real processes that quit.. don't do it with daemons (server processes) as they don't quit and you won't get an eof.... you are in an endless loop.

thomas


Am Sonntag, 19. August 2001 um 23:27 schrieb Lloyd Sargent:

Okay, here's the 411 - when I run AuthorizationExecuteWithPrivileges and use the pipe (the FILE *) for stdio, to get data back I either

a) wait for the tool to quit
b) wait for approx. 8K of data to fill a buffer somewhere

I've tried everything I know to change this behaviour... what can I do to get data through the pipe in a more timely fashion?

Cheers,

Lloyd
-----
Canna Software Development
"You see twisty little tunnels and don't know which way is which."
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Prev by Date: Creating nib files for multi-nib apps
  • Next by Date: FIFOs.
  • Previous by thread: Re: We having fun yet with AuthorizationExecuteWithPrivileges?
  • Next by thread: Continious/Auto-repeat Buttons & Steppers leak 30Kb+ per second!!?
  • Index(es):
    • Date
    • Thread