Comment 3 for bug 913273

Revision history for this message
ruff (rufferson) wrote :

Same happened with me since recently on raring, was ok when installed lxde back on precise, not sure about quantal - was using E

Strace shows flood of

poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN|POLLPRI}, {fd=6, events=POLLIN|POLLPRI}, {fd=9, events=0}, {fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=8, events=POLLIN}], 8, 997) = 2 ([{fd=12, revents=POLLHUP}, {fd=14, revents=POLLHUP}])
recvfrom(3, 0xb10cf4, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN|POLLPRI}, {fd=6, events=POLLIN|POLLPRI}, {fd=9, events=0}, {fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=8, events=POLLIN}], 8, 996) = 2 ([{fd=12, revents=POLLHUP}, {fd=14, revents=POLLHUP}])
recvfrom(3, 0xb10cf4, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=5, events=POLLIN|POLLPRI}, {fd=6, events=POLLIN|POLLPRI}, {fd=9, events=0}, {fd=12, events=POLLIN}, {fd=14, events=POLLIN}, {fd=8, events=POLLIN}], 8, 996) = 2 ([{fd=12, revents=POLLHUP}, {fd=14, revents=POLLHUP}])
recvfrom(3, 0xb10cf4, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)

Here FD 3 is

socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, 20) = 0
getpeername(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, [20]) = 0
getsockname(3, {sa_family=AF_FILE, NULL}, [2]) = 0
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0

why does it read 3 if poll returned 12 & 14?