Messages in this thread | | | From | Geis Jerry <> | Subject | use of ioctl(fd, TCFLSH,0) to flush pipe? | Date | Tue, 2 Jun 1998 08:23:39 -0500 |
| |
I am trying to detect if a pipe created with socketpair() is still active before I send a message down it. I am using ioctl(fd, TCFLSH, 0) to accomplish this and it does not seem to work as it gives me an error everytime (error 22) and the pipe is active at this point.
Is there a problem using this under 2.0.33 or is there a different way to accomplish this.
Thanks very much.
Please CC me directly.
jerry [unhandled content-type:application/ms-tnef]
| |