Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
EtherBone Core
Commits
2fcdbb3e
Commit
2fcdbb3e
authored
10 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
api: do not block the process if a callback was run before select
parent
f7d98589
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/transport/run.c
+3
-1
3 additions, 1 deletion
api/transport/run.c
with
3 additions
and
1 deletion
api/transport/run.c
+
3
−
1
View file @
2fcdbb3e
...
...
@@ -64,6 +64,7 @@ long eb_socket_run(eb_socket_t socketp, long timeout_us) {
struct
timeval
timeout
,
start
,
stop
;
long
eb_deadline
;
long
eb_timeout_us
;
int
done
;
/* Find all descriptors */
FD_ZERO
(
&
sets
.
rfds
);
...
...
@@ -74,7 +75,8 @@ long eb_socket_run(eb_socket_t socketp, long timeout_us) {
gettimeofday
(
&
start
,
0
);
/* !!! hack starts: until we fix sender flow control */
eb_socket_check
(
socketp
,
start
.
tv_sec
,
&
sets
,
&
eb_check_sets
);
done
=
eb_socket_check
(
socketp
,
start
.
tv_sec
,
&
sets
,
&
eb_check_sets
);
if
(
done
>
0
)
return
0
;
/* !!! hack ends */
eb_deadline
=
eb_socket_timeout
(
socketp
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment