Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
b5986279
Unverified
Commit
b5986279
authored
Feb 05, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error reporting when io_uring is unavailable
Ref #55
parent
2fd8f339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
fellow_io_uring.c
src/fellow_io_uring.c
+10
-2
No files found.
src/fellow_io_uring.c
View file @
b5986279
...
...
@@ -239,6 +239,7 @@ try_flag(unsigned flag)
{
struct
io_uring_params
params
;
struct
io_uring
ring
;
const
char
*
e
;
int
ret
;
memset
(
&
params
,
0
,
sizeof
params
);
...
...
@@ -250,8 +251,15 @@ try_flag(unsigned flag)
return
(
flag
);
}
assert
(
ret
==
-
EINVAL
);
return
(
0
);
if
(
ret
==
-
EINVAL
)
return
(
0
);
e
=
strerror
(
0
-
ret
);
if
(
e
==
NULL
)
e
=
"NIL"
;
fprintf
(
stderr
,
"fellow: io_uring try: FATAL, got %d (%s)
\n
"
,
ret
,
e
);
errno
=
0
-
ret
;
WRONG
(
"Unexpected io_uring error. Is it available?"
);
}
static
void
...
...
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