[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issues with Linux 3.0.1 and network-interface-list
From: |
Tassilo Horn |
Subject: |
Issues with Linux 3.0.1 and network-interface-list |
Date: |
Thu, 18 Aug 2011 16:20:07 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Hi all,
does someone else also have issues with `network-interface-list' with
kernel version 3.0.1? For me, sometimes that function returns nil,
although a second earlier and again a second later, it'll return a list
of eth0 and lo...
For example, with "strace -e ioctl emacs -Q" and then evaluating
--8<---------------cut here---------------start------------->8---
(while t
(let ((ifs (network-interface-list)))
(if ifs
(message "Ok")
(error "ifs"))))
--8<---------------cut here---------------end--------------->8---
in *scratch*, I first get some 100th Oks and then an error... The
strace output is:
--8<---------------cut here---------------start------------->8---
ioctl(15, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}},
{"eth0", {AF_INET, inet_addr("141.26.67.142")}}}}) = 0
ioctl(15, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}},
{"eth0", {AF_INET, inet_addr("141.26.67.142")}}}}) = 0
ioctl(15, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}},
{"eth0", {AF_INET, inet_addr("141.26.67.142")}}}}) = 0
[...]
ioctl(15, SIOCGIFCONF, {0, {}})
--8<---------------cut here---------------end--------------->8---
It looks like a kernel bug, right?
(If someone can reproduce that and has some C- and kernel-fu, it would
be great if he could report that at the kernel bugtracker. I don't have
any...)
Bye,
Tassilo
- Issues with Linux 3.0.1 and network-interface-list,
Tassilo Horn <=