I'm wanting to open a stream with popen at the beginning of my app - do other things within the app, then close the stream. My question is:
Do I need to immediately pclose after popen or can I leave it open to keep collecting the stream while my app does other work?