Tuesday, 7 July 2015

[gccsdk] Unable to get the pipe function to work

The port I'm currently looking at uses pipe() and fork() to run a command
and communicates between the main program and an external program.
The main program itself fails with an invalid handle error from RISC OS, so
I thought I'd just check the pipe command and it doesn't appear to be
working.
 
I've used the example from:
 
 
and it gave no output instead of the text expected (and seen when I tried
the code on Ubuntu).
 
Should this be working on RISC OS?
 
If so is there something extra I should be doing?
 
If not, are there any suggestions on what to do instead?
 
Regards,
Alan

No comments:

Post a Comment