Previous Entry Share Next Entry
two-way pipe between two processes
nepal
k001
Linux pipes are one-way, for a reason to avoid deadlocks I suppose. I was looking for a way to create a two-way pipe between two processes (so they can interact between each other). Was thinking of shell redirection with exec, but found an easier(?) way:

socat EXEC:./sender EXEC:./receiver

Update: unfortunately, the biggest problem is socat ignores children exit codes, and apparently there's no way to get those.
Tags:

  • 1
Well this is exactly what socat is doing in this case. I should have mentioned I am writing in shell.

Edited at 2014-05-24 09:36 am (UTC)

  • 1
?

Log in

No account? Create an account