I\'m looking to call a subprocess with a file descriptor opened to a given pipe such that the open() call does not hang waiting for the other side of the pipe to receive a c
The only way I know getting this kind of result is a hack:
mkfifo /tmp/foobar.in mkfifo /tmp/foobar.out ( cat /tmp/foobar.out & some_program --command-fd=5 5
perhaps this helps :-)