about summary refs log tree commit diff
path: root/src/linux/epoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/epoll.c')
-rw-r--r--src/linux/epoll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linux/epoll.c b/src/linux/epoll.c
index 93baa814..e56e8f4c 100644
--- a/src/linux/epoll.c
+++ b/src/linux/epoll.c
@@ -5,6 +5,7 @@
 
 int epoll_create(int size)
 {
+	if (size<=0) return __syscall_ret(-EINVAL);
 	return epoll_create1(0);
 }