Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
e9000a9b
Commit
e9000a9b
authored
Feb 12, 2001
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid closing a socket we're about to use.
parent
d828f5ce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Makefile
Makefile
+1
-1
README
README
+1
-1
ifconfig.c
ifconfig.c
+3
-3
No files found.
Makefile
View file @
e9000a9b
...
...
@@ -101,7 +101,7 @@ endif
# -------- end of user definitions --------
MAINTAINER
=
Philip.Blundell@pobox.com
RELEASE
=
1.5
8
RELEASE
=
1.5
9
.EXPORT_ALL_VARIABLES
:
...
...
README
View file @
e9000a9b
...
...
@@ -32,7 +32,7 @@ Contents:
Notes
-----
This is net-tools 1.5
8
.
This is net-tools 1.5
9
.
You need kernel 2.0 or later to use these programs. These programs
should compile cleanly with both glibc (version 2.0 or 2.1) and libc5,
...
...
ifconfig.c
View file @
e9000a9b
...
...
@@ -3,7 +3,7 @@
* that either displays or sets the characteristics of
* one or more of the system's networking interfaces.
*
* Version: $Id: ifconfig.c,v 1.4
3 2000/10/26 03:19:06 ak
Exp $
* Version: $Id: ifconfig.c,v 1.4
4 2001/02/12 21:06:47 pb
Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* and others. Copyright 1993 MicroWalt Corporation
...
...
@@ -312,13 +312,13 @@ int main(int argc, char **argv)
else
ap
=
get_aftype
(
DFLT_AF
);
if
(
ap
)
{
if
(
ap
)
{
addr_family
=
ap
->
af
;
if
((
fd
=
sockets_open
(
addr_family
))
<
0
)
{
perror
(
"family socket"
);
exit
(
1
);
}
else
{
if
(
skfd
)
close
(
skfd
);
if
(
skfd
>
0
&&
skfd
!=
fd
)
close
(
skfd
);
skfd
=
fd
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment