Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
7baf604d
Commit
7baf604d
authored
Sep 14, 2020
by
Antoine Kaufmann
Browse files
net_wire: terminate properly on signals
parent
ff5d4d71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
net_wire/net_wire.c
net_wire/net_wire.c
+3
-2
No files found.
net_wire/net_wire.c
View file @
7baf604d
...
@@ -153,8 +153,9 @@ int main(int argc, char *argv[])
...
@@ -153,8 +153,9 @@ int main(int argc, char *argv[])
move_pkt
(
&
nsif_b
,
&
nsif_a
);
move_pkt
(
&
nsif_b
,
&
nsif_a
);
ts_a
=
netsim_d2n_timestamp
(
&
nsif_a
);
ts_a
=
netsim_d2n_timestamp
(
&
nsif_a
);
ts_b
=
netsim_d2n_timestamp
(
&
nsif_b
);
ts_b
=
netsim_d2n_timestamp
(
&
nsif_b
);
}
while
((
sync_a
&&
ts_a
<=
cur_ts
)
||
}
while
(
!
exiting
&&
(
sync_b
&&
ts_b
<=
cur_ts
));
((
sync_a
&&
ts_a
<=
cur_ts
)
||
(
sync_b
&&
ts_b
<=
cur_ts
)));
if
(
sync_a
&&
sync_b
)
if
(
sync_a
&&
sync_b
)
cur_ts
=
(
ts_a
<=
ts_b
?
ts_a
:
ts_b
);
cur_ts
=
(
ts_a
<=
ts_b
?
ts_a
:
ts_b
);
...
...
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