Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Issue 3060016: Added a D-Bus filter to find out when flimflamd dies, so that we can clean up and exit. (Closed)

Created:
10 years, 5 months ago by Eric Shienbrood
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/dhcpcd.git
Visibility:
Public.

Description

Added a D-Bus filter to find out when flimflamd dies, so that we can clean up and exit. BUG=chromium-os:5035 TEST=Start flimflamd. Observe that it starts dhcpcd to configure eth0. Kill flimflamd with a signal that it doesn't catch (SIGQUIT or SIGSEGV will do). Observe that dhcpcd exits. Also tested the "normal" case in which flimflamd is terminated with a SIGTERM, and observed that it behaves as it did before, i.e., it does an orderly shutdown and sends a release request to dhcpcd.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -1 line) Patch
M dhcpcd-dbus.c View 3 chunks +44 lines, -1 line 1 comment Download

Messages

Total messages: 5 (0 generated)
Eric Shienbrood
10 years, 5 months ago (2010-07-26 20:56:25 UTC) #1
Sam Leffler
LGTM
10 years, 5 months ago (2010-07-26 21:04:30 UTC) #2
kobi
http://codereview.chromium.org/3060016/diff/1/2 File dhcpcd-dbus.c (right): http://codereview.chromium.org/3060016/diff/1/2#newcode577 dhcpcd-dbus.c:577: strlen(new_owner) == 0) { I think it is better ...
10 years, 5 months ago (2010-07-27 18:07:02 UTC) #3
Sam Leffler
Why? Is there a reference for this stuff? -Sam On Tue, Jul 27, 2010 at ...
10 years, 5 months ago (2010-07-27 18:11:48 UTC) #4
Eric Shienbrood
10 years, 5 months ago (2010-07-27 18:18:31 UTC) #5
On 2010/07/27 18:11:48, Sam Leffler wrote:
> Why?  Is there a reference for this stuff?
> 
> -Sam
> 
> On Tue, Jul 27, 2010 at 11:07 AM, <mailto:kobic@codeaurora.org> wrote:
> 
> >
> > http://codereview.chromium.org/3060016/diff/1/2
> > File dhcpcd-dbus.c (right):
> >
> > http://codereview.chromium.org/3060016/diff/1/2#newcode577
> > dhcpcd-dbus.c:577: strlen(new_owner) == 0) {
> > I think it is better to check new_owner against null || '\0'
> >
> >
> > http://codereview.chromium.org/3060016/show
> >
> 

There is no reference as far as I can discover. Running dbus-monitor, I observed
that the signal arg that specifies the old (or new) owner is an empty string
when the owner disappears (or appears).

Powered by Google App Engine
This is Rietveld 408576698