From: "Ulrich Drepper" Subject: Re: [take19 0/4] kevent: Generic event handling mechanism. Date: Tue, 3 Oct 2006 21:50:09 -0700 Message-ID: References: <115a6230591036@2ka.mipt.ru> <11587449471424@2ka.mipt.ru> <20060927150957.GA18116@2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: lkml , "David Miller" , "Ulrich Drepper" , "Andrew Morton" , netdev , "Zach Brown" , "Christoph Hellwig" , "Chase Venters" Return-path: Received: from ug-out-1314.google.com ([66.249.92.172]:47746 "EHLO ug-out-1314.google.com") by vger.kernel.org with ESMTP id S1030278AbWJDEuK (ORCPT ); Wed, 4 Oct 2006 00:50:10 -0400 Received: by ug-out-1314.google.com with SMTP id o38so13507ugd for ; Tue, 03 Oct 2006 21:50:09 -0700 (PDT) To: "Evgeniy Polyakov" In-Reply-To: <20060927150957.GA18116@2ka.mipt.ru> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 9/27/06, Evgeniy Polyakov wrote: \> I have been told in private what is signal masks about - just to wait > until either signal or given condition is ready, but in that case just > add additional kevent user like AIO complete or netwrok notification > and wait until either requested events are ready or signal is triggered. No, this won't work. Yes, I want signal notification as part of the event handling. But there are situations when this is not suitable. Only if the signal is expected in the same code using the event handling can you do this. But this is not always possible. Especially when the signal handling code is used in other parts of the code than the event handling. E.g., signal handling in a library, event handling in the main code. You cannot assume that all the code is completely integrated.