I want to redirect output from a child process to my own little colorful console listbrowser. My main eventloop is driven by signals and a IExec->Wait statement. Now, the most straightforward method to redirect process output, I guess, is to create two PIPE: filehandles and hand over the write end to the process when it is created. Now the question is, how do I know, when stuff has been written to my pipe? I have tried to allocate a dos notify request (with AllocDosObject), but it doesn't seem to work. I was thinking of bsdsocket WaitSelect, but I don't think it works with pipes. What am I to do??
Sat, 2012-11-10 04:09
#1
How to get a signal from PIPE:?