2008-08-14 Dan Williams <dcbw@redhat.com>
* src/nm-netlink-monitor.c src/nm-netlink-monitor.h src/nm-device-ethernet.c - (nm_netlink_monitor_request_status): return an error on failure - (constructor): don't segfault on missing error git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3958 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2008-08-14 Dan Williams <dcbw@redhat.com>
|
||||||
|
|
||||||
|
* src/nm-netlink-monitor.c
|
||||||
|
src/nm-netlink-monitor.h
|
||||||
|
src/nm-device-ethernet.c
|
||||||
|
- (nm_netlink_monitor_request_status): return an error on failure
|
||||||
|
- (constructor): don't segfault on missing error
|
||||||
|
|
||||||
2008-08-13 Dan Williams <dcbw@redhat.com>
|
2008-08-13 Dan Williams <dcbw@redhat.com>
|
||||||
|
|
||||||
* callouts/nm-dispatcher-action.c
|
* callouts/nm-dispatcher-action.c
|
||||||
|
@@ -291,7 +291,7 @@ constructor (GType type,
|
|||||||
dev);
|
dev);
|
||||||
|
|
||||||
if (!nm_netlink_monitor_request_status (monitor, &error)) {
|
if (!nm_netlink_monitor_request_status (monitor, &error)) {
|
||||||
nm_warning ("couldn't request carrier state: %s", error->message);
|
nm_warning ("couldn't request carrier state: %s", error ? error->message : "unknown");
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -434,7 +434,10 @@ nm_netlink_monitor_request_status (NMNetlinkMonitor *monitor,
|
|||||||
|
|
||||||
/* Update the link cache with latest state */
|
/* Update the link cache with latest state */
|
||||||
if (nl_cache_refill (priv->nlh, priv->nlh_link_cache)) {
|
if (nl_cache_refill (priv->nlh, priv->nlh_link_cache)) {
|
||||||
nm_warning ("Error updating link cache: %s", nl_geterror ());
|
g_set_error (error, NM_NETLINK_MONITOR_ERROR,
|
||||||
|
NM_NETLINK_MONITOR_ERROR_LINK_CACHE_UPDATE,
|
||||||
|
_("error updating link cache: %s"),
|
||||||
|
nl_geterror ());
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -43,6 +43,7 @@ typedef enum {
|
|||||||
NM_NETLINK_MONITOR_ERROR_PROCESSING_MESSAGE,
|
NM_NETLINK_MONITOR_ERROR_PROCESSING_MESSAGE,
|
||||||
NM_NETLINK_MONITOR_ERROR_BAD_ALLOC,
|
NM_NETLINK_MONITOR_ERROR_BAD_ALLOC,
|
||||||
NM_NETLINK_MONITOR_ERROR_WAITING_FOR_SOCKET_DATA,
|
NM_NETLINK_MONITOR_ERROR_WAITING_FOR_SOCKET_DATA,
|
||||||
|
NM_NETLINK_MONITOR_ERROR_LINK_CACHE_UPDATE
|
||||||
} NMNetlinkMonitorError;
|
} NMNetlinkMonitorError;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Reference in New Issue
Block a user