OSDN Git Service

epoll_create: reject size <= 0
authorGreg Hackmann <ghackmann@google.com>
Thu, 24 Mar 2016 20:41:17 +0000 (13:41 -0700)
committerGreg Hackmann <ghackmann@google.com>
Thu, 24 Mar 2016 23:37:20 +0000 (16:37 -0700)
commita03c62b469d04c4b38aaa4a02f6ec23254b0feeb
treec1cf4ee3d7436a9cf2917cc49609aa9491529ffd
parentfb23fa30465e14b5dbf0e9de2a34c1cbe113e971
epoll_create: reject size <= 0

Even though the size parameter to epoll_create(2) is (otherwise) unused,
passing in size <= 0 is explicitly documented as an error.

This change fixes the LTP epoll01 testcase.

Change-Id: I044a38be823c2fa956b57e77cc66571dfae8a4bb
Signed-off-by: Greg Hackmann <ghackmann@google.com>
libc/bionic/epoll_create.cpp
tests/sys_epoll_test.cpp