Re: Easy Question: I just don't have the answer...
Re: Easy Question: I just don't have the answer...
- Subject: Re: Easy Question: I just don't have the answer...
- From: Andreas Monitzer <email@hidden>
- Date: Sat, 18 Aug 2001 02:49:42 +0200
On Saturday, August 18, 2001, at 02:28 , Lloyd Sargent wrote:
Okay, this is a weird one, so just bear with me...
In the Auth framework there is the function
err = AuthorizationExecuteWithPrivileges(authRef, toolPath, 0, args,
pipe);
Okay, well the tool that I'm running is designed to return data
sporadically. The problem I'm having is reading from the pipe - it does a
blocking read (which I know is correct behaviour) ... however, I would
LIKE to know if the pipe is empty... How do I do this? Is it possible?
What about doing a select() with a timeout of zero?
andy
--
Discussion forthcoming.