Re: Edge triggered epoll with pts devices acts as level triggered
From: Heikki Orsila (shd_at_modeemi.cs.tut.fi)
Date: 08/13/05
- Previous message: Jan-Benedict Glaw: "Re: starting a user defined daemon at linux startup."
- In reply to: Adam Langley: "Edge triggered epoll with pts devices acts as level triggered"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 13 Aug 2005 13:30:53 +0300 To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Adam Langley wrote:
> epoll_wait(epoll_fd, events, 4, -1);
> write(1, ".", 1);
The test case is faulty. write will trigger the event again infinitely.
fds 0 and 1 are the same in many cases. Try this:
$ ./epolltest > foo
Now you will only get 1 trigger for each input.
-- Heikki Orsila Barbie's law: heikki.orsila@iki.fi "Math is hard, let's go shopping!" http://www.iki.fi/shd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Jan-Benedict Glaw: "Re: starting a user defined daemon at linux startup."
- In reply to: Adam Langley: "Edge triggered epoll with pts devices acts as level triggered"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|