in reply to Re^2: SIG{'PIPE'} and pipe timeout
in thread SIG{'PIPE'} and pipe timeout
....snip...... # pipe1 - bidirectional communication using two pipe pairs # designed for the socketpair-challenged ...snip....... But you don't actually have to make two pipe calls. If you have the +socketpair() system call, it will do this all for you. #!/usr/bin/perl -w # pipe2 - bidirectional communication using socketpair # "the best ones always go both ways"
So you are not creating a pipe with socketpair, that is why I brought it up in my original post, about you relating a SIG{PIPE} to the socketpair. I was thinking that somewhere in your program, you had a pipe ( liked a piped open ) which prints to the socket.
It really would be good if you could show a snippet of code which gives your error. Does the code in perlipc (pipe2), showing how to use a socketpair, work OK for you? It works OK for me. How does your code differ from it?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: SIG{'PIPE'} and pipe timeout
by Marcello (Hermit) on Feb 06, 2006 at 21:15 UTC | |
by zentara (Cardinal) on Feb 07, 2006 at 16:30 UTC | |
by Marcello (Hermit) on Feb 08, 2006 at 10:52 UTC |