Forum Topic - Reading Binary Data from a Child-Process:
   
Reading Binary Data from a Child-Process  
Hi all,

I am trying to read Binary Data from a Child Process.

I open the Pipe by pipe() and then try to do a select() on the "stdin"-End of the pipe. but select() runs into the 
Timeout.

My Idea would be to set the "stdin"-End of the pipe to Binary-Mode, but how do I do this?
the O_BINARY-Flag in fcntl.h doesn't apply, it is defined as 0.

Regards,
Christian
Re: Reading Binary Data from a Child-Process  
You can lookup online fork/pipe example, out of the box posix example 
should just work file.
What do you mean binary? It is always binary, it is not windows. Why do 
you need select? You
have more than one stream?

On 13-05-15 05:51 AM, Christian Reinecke wrote:
> Hi all,
>
> I am trying to read Binary Data from a Child Process.
>
> I open the Pipe by pipe() and then try to do a select() on the "stdin"-End of the pipe. but select() runs into the 
Timeout.
>
> My Idea would be to set the "stdin"-End of the pipe to Binary-Mode, but how do I do this?
> the O_BINARY-Flag in fcntl.h doesn't apply, it is defined as 0.
>
> Regards,
> Christian
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post101431
> To cancel your subscription to this discussion, please e-mail general-community-unsubscribe@community.qnx.com