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
a274a859
Commit
a274a859
authored
11 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
api: unset non-blocking when requested
parent
9b424e36
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/dev.c
+1
-1
1 addition, 1 deletion
api/transport/dev.c
with
1 addition
and
1 deletion
api/transport/dev.c
+
1
−
1
View file @
a274a859
...
@@ -47,7 +47,7 @@ static void eb_dev_set_blocking(int fdes, int block) {
...
@@ -47,7 +47,7 @@ static void eb_dev_set_blocking(int fdes, int block) {
int
flags
;
int
flags
;
flags
=
fcntl
(
fdes
,
F_GETFL
,
0
);
flags
=
fcntl
(
fdes
,
F_GETFL
,
0
);
fcntl
(
fdes
,
F_SETFL
,
flags
|
(
block
?
0
:
O_NONBLOCK
));
fcntl
(
fdes
,
F_SETFL
,
(
flags
&~
O_NONBLOCK
)
|
(
block
?
0
:
O_NONBLOCK
));
}
}
static
int
eb_dev_ewouldblock
()
{
static
int
eb_dev_ewouldblock
()
{
...
...
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