diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-12 13:02:41 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-12 13:02:41 +0000 |
commit | f231801ac16e75e9b81d7e54fe56944a054ec97b (patch) | |
tree | dafbaaba89505697a465115a443314634f2a486e /perl-install | |
parent | 4b3794f3efc7bb834bcce0bb13e1f5956d3c48c8 (diff) | |
download | drakx-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar drakx-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar.gz drakx-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar.bz2 drakx-f231801ac16e75e9b81d7e54fe56944a054ec97b.tar.xz drakx-f231801ac16e75e9b81d7e54fe56944a054ec97b.zip |
close socket everytime in hasNetDevice
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/c/stuff.xs.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm index c115a8b0e..8e09a2490 100644 --- a/perl-install/c/stuff.xs.pm +++ b/perl-install/c/stuff.xs.pm @@ -280,7 +280,7 @@ hasNetDevice(device) strcpy(req.ifr_name, device); RETVAL = ioctl(s, SIOCGIFFLAGS, &req) == 0; - if (!RETVAL) close(s); + close(s); OUTPUT: RETVAL |