Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
2905e2cd
Commit
2905e2cd
authored
Jun 09, 2005
by
Robert Ricci
Browse files
Fix a bug that was preventing writing to multiple files.
parent
f26a255d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/pcapper/pcapper.c
View file @
2905e2cd
...
...
@@ -813,7 +813,7 @@ int main (int argc, char **argv) {
args
->
fd
=
fd
;
args
->
cli
=
0
;
args
->
interval
=
filetime
;
client_connected
[
0
]
=
1
;
client_connected
[
i
]
=
1
;
active
=
1
;
pthread_create
(
&
thread
,
NULL
,
feedclient
,
args
);
pthread_cond_broadcast
(
&
cond
);
...
...
@@ -830,7 +830,7 @@ int main (int argc, char **argv) {
exit
(
1
);
}
i
=
1
;
//i++
;
if
(
setsockopt
(
sock
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
i
,
sizeof
(
int
))
<
0
)
perror
(
"SO_REUSEADDR"
);
...
...
Write
Preview
Supports
Markdown
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