I tried ioctl(fd, TCFLSH, 0) but I think that only
works for terminal file descriptors not sockets.
What I am trying to do is detect a socketpair()
connection has been lost before I use sendmsg
to send a file descriptor to the other task.
I do realize that catching SIGPIPE after sendmsg is
called should work, I need to know if the connection
is lost before that.
Please CC me directly.
Thanks,
Jerry Geis
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu