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
74f077eb
Commit
74f077eb
authored
Aug 27, 2009
by
Bernd Eckenfels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Feature Request from ssb
[ Feature Request #4466 ] --continuous should flush stdout
parent
9cfbce35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
netstat.c
netstat.c
+11
-5
No files found.
netstat.c
View file @
74f077eb
...
...
@@ -6,7 +6,7 @@
* NET-3 Networking Distribution for the LINUX operating
* system.
*
* Version: $Id: netstat.c,v 1.6
4 2009/07/28 01:40:17
ecki Exp $
* Version: $Id: netstat.c,v 1.6
5 2009/08/27 20:29:19
ecki Exp $
*
* Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
* Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
...
...
@@ -299,6 +299,12 @@ static void prg_cache_clear(void)
prg_cache_loaded
=
0
;
}
static
void
wait_continous
(
void
)
{
fflush
(
stdout
);
sleep
(
1
);
}
static
int
extract_type_1_socket_inode
(
const
char
lname
[],
unsigned
long
*
inode_p
)
{
/* If lname is of the form "socket:[12345]", extract the "12345"
...
...
@@ -1725,7 +1731,7 @@ int main
flag_not
&
FLAG_NUM_PORT
,
flag_exp
);
if
(
i
||
!
flag_cnt
)
break
;
sleep
(
1
);
wait_continous
(
);
}
#else
ENOSUPP
(
"netstat"
,
"FW_MASQUERADE"
);
...
...
@@ -1778,7 +1784,7 @@ int main
i
=
route_info
(
afname
,
options
);
if
(
i
||
!
flag_cnt
)
break
;
sleep
(
1
);
wait_continous
(
);
}
return
(
i
);
}
...
...
@@ -1787,7 +1793,7 @@ int main
i
=
iface_info
();
if
(
!
flag_cnt
||
i
)
break
;
sleep
(
1
);
wait_continous
(
);
}
return
(
i
);
}
...
...
@@ -1934,7 +1940,7 @@ int main
if
(
!
flag_cnt
||
i
)
break
;
sleep
(
1
);
wait_continous
(
);
prg_cache_clear
();
}
return
(
i
);
...
...
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