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

Unified Diff: dhcpcd-dbus.c

Issue 2851023: dhcpcd-dbus.c::msg_handler(): Call raise() instead of handle_signal(), (Closed) Base URL: ssh://git@chromiumos-git/dhcpcd.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dhcpcd-dbus.c
diff --git a/dhcpcd-dbus.c b/dhcpcd-dbus.c
index 36390107f6bc795064e9406cacfb2db142d33b9b..d3330ea55e9ee209b189c38ee8e4f5cab8c6f7de 100644
--- a/dhcpcd-dbus.c
+++ b/dhcpcd-dbus.c
@@ -484,12 +484,12 @@ msg_handler(DBusConnection *con, DBusMessage *msg, _unused void *data)
bind_interface(ifaces); /* XXX */
return dbus_ack(con, msg);
} else if (IsMethod(msg, "Release")) {
- handle_signal(SIGHUP);
+ raise(SIGHUP);
return dbus_ack(con, msg);
} else if (IsMethod(msg, "Stop")) {
/* NB: must ack first 'cuz handle_signal exit's */
(void) dbus_ack(con, msg);
- handle_signal(SIGINT);
+ raise(SIGINT);
/*NOTREACHED*/
}
return return_dbus_error(con, msg, S_EINVAL, S_ARGS);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698