|I'm working on porting the process handler class of Lgi to BeOS and I'm wondering how to get state information out of the file handles that are connected to the stdin and stdout of the process that is spawned by the class. i.e.
int s, pid;
if (!(pid = fork()))
// stdout -> Read
// setup read & write handles
// read from pid's stdout... IF there is data
// available. On linux you can use poll
Anyone know an equivilant way to find out whether there is data on the handle to read?
If I can fix this I can get my Ide working on BeOS and be twice as productive. i.e. more BeOS releases sooner.