diff options
author | David Zeuthen <david@fubar.dk> | 2004-12-10 18:26:49 +0000 |
---|---|---|
committer | David Zeuthen <david@fubar.dk> | 2004-12-10 18:26:49 +0000 |
commit | e4783f03ba68fe2958b5126ef1549ce3ccbdbaae (patch) | |
tree | 865bedc7ff967fb78b54c12f64f8f4ce49a39d68 | |
parent | f0fc6f90792ad3b154f472b7d0fa34f9e5f56643 (diff) |
Close the fd for link detection before getting the rate
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | hald/linux/net_class_device.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2004-12-10 David Zeuthen <david@fubar.dk> + + * hald/linux/net_class_device.c (mii_get_link): Close the fd for link + detection before getting the rate + 2004-12-08 David Zeuthen <davidz@redhat.com> * tools/fstab-sync.c (fs_table_line_is_mounted): Patch from Sjoerd diff --git a/hald/linux/net_class_device.c b/hald/linux/net_class_device.c index b354fb03..883c3bef 100644 --- a/hald/linux/net_class_device.c +++ b/hald/linux/net_class_device.c @@ -260,10 +260,11 @@ mii_get_link (HalDevice *d) else hal_device_property_set_bool (d, "net.80203.link", FALSE); + close (sockfd); + /* Also get the link rate */ mii_get_rate (d); - close (sockfd); } static void |