with reference to the following thread.
Select and poll work with integer file descriptors.
Are there alternative timeout methods (excluding signal alarms) that can be applied to stream functions that deal with a FILE* handle?
In addition, the pclose hang seems to a bug in popen (not closing all fds) judging by general comments on the problem.
what do you think vVv?