setsockopt(), POLLHUP event
From: Thomas Richter (thor_at_cleopatra.math.tu-berlin.de)
Date: 03/29/04
- Next message: Gil Hamilton: "Re: Unknown kernel mode CPU thief in SMP system."
- Previous message: Villy Kruse: "Re: Obtaining the "ps ax" pid from a thread?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2004 13:30:22 GMT
I've a question concerning the events returned by the poll() system call.
In the code I'm reviewing here, a socket gets created, then the socket
parameters are changed by setsockopt(), and then a poll() is run on
the created socket, waiting on the event POLLOUT. However, the poll
does not return a POLLOUT event, but rather POLLERR|POLLHUP on the
socket "id". The other machine is, however, still in the network
(I can reach it under the id by ssh, ping, etc.).
Any ideas what this error means and which part of the network
went crazy?
So long,
Thomas
- Next message: Gil Hamilton: "Re: Unknown kernel mode CPU thief in SMP system."
- Previous message: Villy Kruse: "Re: Obtaining the "ps ax" pid from a thread?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|