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

Side by Side Diff: dhcpcd.c

Issue 3061018: Send a "ping" message outwards so folks know we started (Closed) Base URL: ssh://gitrw.chromium.org/dhcpcd.git
Patch Set: Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * dhcpcd - DHCP client daemon 2 * dhcpcd - DHCP client daemon
3 * Copyright (c) 2006-2009 Roy Marples <roy@marples.name> 3 * Copyright (c) 2006-2009 Roy Marples <roy@marples.name>
4 * All rights reserved 4 * All rights reserved
5 5
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 } 1706 }
1707 1707
1708 if (init_sockets() == -1) { 1708 if (init_sockets() == -1) {
1709 syslog(LOG_ERR, "init_socket: %m"); 1709 syslog(LOG_ERR, "init_socket: %m");
1710 exit(EXIT_FAILURE); 1710 exit(EXIT_FAILURE);
1711 } 1711 }
1712 if (dhcpcd_dbus_init() == -1) { 1712 if (dhcpcd_dbus_init() == -1) {
1713 /* NB: dhcpcd_dbus_init generates a syslog msg */ 1713 /* NB: dhcpcd_dbus_init generates a syslog msg */
1714 exit(EXIT_FAILURE); 1714 exit(EXIT_FAILURE);
1715 } 1715 }
1716 dhcpcd_dbus_signal_status("Init");
1717
1716 if (ifo->options & DHCPCD_LINK) { 1718 if (ifo->options & DHCPCD_LINK) {
1717 linkfd = open_link_socket(); 1719 linkfd = open_link_socket();
1718 if (linkfd == -1) 1720 if (linkfd == -1)
1719 syslog(LOG_ERR, "open_link_socket: %m"); 1721 syslog(LOG_ERR, "open_link_socket: %m");
1720 else 1722 else
1721 add_event(linkfd, handle_link, NULL); 1723 add_event(linkfd, handle_link, NULL);
1722 } 1724 }
1723 1725
1724 ifc = argc - optind; 1726 ifc = argc - optind;
1725 ifv = argv + optind; 1727 ifv = argv + optind;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 } 1796 }
1795 free_options(ifo); 1797 free_options(ifo);
1796 1798
1797 sort_interfaces(); 1799 sort_interfaces();
1798 for (iface = ifaces; iface; iface = iface->next) 1800 for (iface = ifaces; iface; iface = iface->next)
1799 add_timeout_sec(0, start_interface, iface); 1801 add_timeout_sec(0, start_interface, iface);
1800 1802
1801 start_eloop(); 1803 start_eloop();
1802 exit(EXIT_SUCCESS); 1804 exit(EXIT_SUCCESS);
1803 } 1805 }
OLDNEW
« 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