mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
Linux: Pass size argument of epoll_create to the kernel
The kernel actually verifies it, and a garbage value in the register causes improper system call failures. Fixes commit c1c0dea38833751f36a145c32 ("Linux: Remove epoll_create, inotify_init from syscalls.list") and commit d1d23b134244d59c4d6ef2295 ("Lninux: consolidate epoll_create implementation"). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
9ffeabdf2e
commit
3c66c9600e
@ -25,7 +25,7 @@ int
|
||||
epoll_create (int size)
|
||||
{
|
||||
#ifdef __NR_epoll_create
|
||||
return INLINE_SYSCALL_CALL (epoll_create);
|
||||
return INLINE_SYSCALL_CALL (epoll_create, size);
|
||||
#else
|
||||
if (size <= 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user