* Issues with Linux 3.0.1 and network-interface-list
@ 2011-08-18 14:20 Tassilo Horn
2011-08-18 15:38 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2011-08-18 14:20 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Issues with Linux 3.0.1 and network-interface-list
2011-08-18 14:20 Issues with Linux 3.0.1 and network-interface-list Tassilo Horn
@ 2011-08-18 15:38 ` Andreas Schwab
2011-08-18 15:55 ` Tassilo Horn
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2011-08-18 15:38 UTC (permalink / raw)
To: Tassilo Horn; +Cc: emacs-devel
Tassilo Horn <tassilo@member.fsf.org> writes:
> 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...
Does it still happen?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Issues with Linux 3.0.1 and network-interface-list
2011-08-18 15:38 ` Andreas Schwab
@ 2011-08-18 15:55 ` Tassilo Horn
0 siblings, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2011-08-18 15:55 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
Andreas Schwab <schwab@linux-m68k.org> writes:
Hi Andreas,
>> 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...
>
> Does it still happen?
Nope, seems to work fine now.
Thank you,
Tassilo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-18 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-18 14:20 Issues with Linux 3.0.1 and network-interface-list Tassilo Horn
2011-08-18 15:38 ` Andreas Schwab
2011-08-18 15:55 ` Tassilo Horn
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).