git://git.jankratochvil.net
/
slsnif.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f35f148
)
Disabled stdout/stderr buffering
author
short
<>
Wed, 6 Mar 2002 03:57:29 +0000
(
03:57
+0000)
committer
short
<>
Wed, 6 Mar 2002 03:57:29 +0000
(
03:57
+0000)
src/slsnif.c
patch
|
blob
|
history
diff --git
a/src/slsnif.c
b/src/slsnif.c
index
7d49af2
..
ca797b6
100644
(file)
--- a/
src/slsnif.c
+++ b/
src/slsnif.c
@@
-299,6
+299,10
@@
int main(int argc, char *argv[]) {
{NULL, 0, NULL, 0}
};
#endif
+
+ setvbuf(stdout,NULL,_IONBF,0);
+ setvbuf(stderr,NULL,_IONBF,0);
+
/* initialize variables */
baudstr[0] = 0;
tty_data.portName = tty_data.ptyName = NULL;