Re: Edge triggered epoll with pts devices acts as level triggered

From: Heikki Orsila (shd_at_modeemi.cs.tut.fi)
Date: 08/13/05

  • Next message: Jan Kara: "[PATCH] Fix error handling in reiserfs"
    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/
    

  • Next message: Jan Kara: "[PATCH] Fix error handling in reiserfs"

    Relevant Pages

    • Re: 2.6.9bk6 msdos fs OOPS
      ... >This bug is triggered by race condition. ... Apparently my lashup doesn't trigger it. ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [ACPI] acpi problem with nforce motherboards and ethernet
      ... in December both to the LKML and the ACPI maintainer. ... Maciej W. Rozycki, Technical University of Gdansk, Poland + ... erroneously sets the trigger to level, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kernel 2.6.8.1: swap storm of death - CFQ scheduler=culprit
      ... On Tue, Aug 24 2004, Karl Vogel wrote: ... > Did some extra testing yesterday. ... > I also tried with deadline, but was unable to trigger it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: clone() <-> getpid() bug in 2.6?
      ... Well, there was no gdb on that machine, compiling it now. ... For example how do I set a bp to trigger when getpid() is called? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Fwd: fs/sysfs/file.c:fill_read_buffer -- signed/unsigned bug?
      ... clear on why, but somehow, returning a negative value causes the ... BUG_ON; to trigger. ... without the core oopsing for me on valid code. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)