public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/18279] New: Long running programs don't detect resolv.conf being updated when roaming
@ 2015-04-18 19:14 philipp@redfish-solutions.com
  2015-04-18 19:18 ` [Bug network/18279] " philipp@redfish-solutions.com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: philipp@redfish-solutions.com @ 2015-04-18 19:14 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18279

            Bug ID: 18279
           Summary: Long running programs don't detect resolv.conf being
                    updated when roaming
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: philipp@redfish-solutions.com

Thanks to the stability of Linux, I run it on my laptop and leaving it running
for weeks at a time. During that time, I might (a) have Thunderbird running and
(b) roam from my home wired network on my docking station to a Wifi hotspot at
an airport or Starbucks or hotel to the office wired network and back again.

Unfortunately, during this time, /etc/resolv.conf will get rewritten by
dhclient multiple times, but the contents that were in it when Thunderbird (for
example) originally started will long have become irrelevant.

A simple fix would be to either stat() /etc/resolv.conf or to have inotify()
detect when /etc/resolv.conf has been written, deleted, or created and to
re-run res_init() at that time.

It might be possible to configure /etc/resolv.conf to point to a local proxy
which then is a little smarter about detecting network configuration changes,
but most distros aren't going to do that: it's complexity that they don't want
to deal with, and it complicates troubleshooting for the end-user.

Or you could tell users to shutdown and restart all of their applications
because libresolv doesn't handle roaming, but I don't think that advice will be
well received either.

We're living in the age of pervasive internet, and we roam constantly because
we can.

Time for libresolv to get caught up to a 21st century paradigm. This isn't 1985
anymore.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug network/18279] Long running programs don't detect resolv.conf being updated when roaming
  2015-04-18 19:14 [Bug network/18279] New: Long running programs don't detect resolv.conf being updated when roaming philipp@redfish-solutions.com
@ 2015-04-18 19:18 ` philipp@redfish-solutions.com
  2015-04-20  7:29 ` fweimer at redhat dot com
  2015-08-24  9:43 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: philipp@redfish-solutions.com @ 2015-04-18 19:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18279

Philip Prindeville <philipp@redfish-solutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kevin at scrye dot com,
                   |                            |philipp@redfish-solutions.c
                   |                            |om, siddhesh at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug network/18279] Long running programs don't detect resolv.conf being updated when roaming
  2015-04-18 19:14 [Bug network/18279] New: Long running programs don't detect resolv.conf being updated when roaming philipp@redfish-solutions.com
  2015-04-18 19:18 ` [Bug network/18279] " philipp@redfish-solutions.com
@ 2015-04-20  7:29 ` fweimer at redhat dot com
  2015-08-24  9:43 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2015-04-20  7:29 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18279

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug network/18279] Long running programs don't detect resolv.conf being updated when roaming
  2015-04-18 19:14 [Bug network/18279] New: Long running programs don't detect resolv.conf being updated when roaming philipp@redfish-solutions.com
  2015-04-18 19:18 ` [Bug network/18279] " philipp@redfish-solutions.com
  2015-04-20  7:29 ` fweimer at redhat dot com
@ 2015-08-24  9:43 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-24  9:43 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18279

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Duplicate.

*** This bug has been marked as a duplicate of bug 984 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-24  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-18 19:14 [Bug network/18279] New: Long running programs don't detect resolv.conf being updated when roaming philipp@redfish-solutions.com
2015-04-18 19:18 ` [Bug network/18279] " philipp@redfish-solutions.com
2015-04-20  7:29 ` fweimer at redhat dot com
2015-08-24  9:43 ` jsm28 at gcc dot gnu.org

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).