mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* issue with epoll syscall
@ 2009-05-08  4:06 rohit verma
  0 siblings, 0 replies; only message in thread
From: rohit verma @ 2009-05-08  4:06 UTC (permalink / raw)
  To: linux-kernel

hi all,

The man pages of epoll_create says - "Since Linux 2.6.8, the size
argument is unused.  (The kernel dynamically sizes the required data
structures without needing this initial hint.)" .

Also, it says that the syscall returns EINVAL , when size is not
positive. (i.e For, any value greater than 0, the kernel dynamically
sizes the required data stuctures). When size is zero or less than
zero, it has to return with error as EINVAL.

the latest patch of the epoll syscall tells:

asmlinkage long sys_epoll_create(int size)
{
- return sys_epoll_create2(size,0);
+ if (size < 0)
+  return -EINVAL;
+
+return sys_epoll_create1(0);
}

So if size = 0, it returns success which might not be the expected
result. So i feel that the condition check should be
" if (size <= 0) ". could u please check on this and reply me..

Thank you,

Regards,
rohit

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-08  4:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-08  4:06 issue with epoll syscall rohit verma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®