Skip to content
Advertisement

Tag: popen

Non-blocking pipe using popen?

I’d like to open a pipe using popen() and have non-blocking ‘read’ access to it. How can I achieve this? (The examples I found were all blocking/synchronous) Answer Setup like this: Now you can read: When you’re done, cleanup:

Advertisement