Re: We having fun yet with AuthorizationExecuteWithPrivileges?
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