Search:

Type: Posts; User: cyberfish

Search: Search took 0.05 seconds.

  1. Life would be so good if popen supports "rw"...

    Life would be so good if popen supports "rw" mode...

    But yes, for this application, popen() is easier, since you presumably don't need to write to ffmpeg.
  2. You need to fork somewhere. execl() replaces...

    You need to fork somewhere.

    execl() replaces the process image, so it will never return.

    You need to first create pipes (using pipe()) for I/O, and then fork. In the child process, dup2() stdin...
Results 1 to 2 of 2