You cannot use recv on a pipe, it will fail with ENOTSOCK.
Use read/write or try socketpair() instead.

 - todd

Reply via email to