Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
f3bbb01f
Unverified
Commit
f3bbb01f
authored
Jul 28, 2020
by
Christian Brauner
Committed by
GitHub
Jul 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3501 from ffontaine/master
syscall: don't fail if __NR_signalfd is not defined
parents
79c66a2a
3341e204
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
syscall_numbers.h
src/lxc/syscall_numbers.h
+0
-3
syscall_wrappers.h
src/lxc/syscall_wrappers.h
+2
-0
No files found.
src/lxc/syscall_numbers.h
View file @
f3bbb01f
...
...
@@ -228,9 +228,6 @@
#if _MIPS_SIM == _MIPS_SIM_ABI64
/* n64 */
#define __NR_signalfd 5276
#endif
#else
#define -1
#warning "__NR_signalfd not defined for your architecture"
#endif
#endif
...
...
src/lxc/syscall_wrappers.h
View file @
f3bbb01f
...
...
@@ -112,8 +112,10 @@ static inline int signalfd(int fd, const sigset_t *mask, int flags)
int
retval
;
retval
=
syscall
(
__NR_signalfd4
,
fd
,
mask
,
_NSIG
/
8
,
flags
);
#ifdef __NR_signalfd
if
(
errno
==
ENOSYS
&&
flags
==
0
)
retval
=
syscall
(
__NR_signalfd
,
fd
,
mask
,
_NSIG
/
8
);
#endif
return
retval
;
}
...
...
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