From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14452 invoked by alias); 28 Oct 2003 21:09:35 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 14443 invoked from network); 28 Oct 2003 21:09:33 -0000 Received: from unknown (HELO web21208.mail.yahoo.com) (216.136.175.166) by sources.redhat.com with SMTP; 28 Oct 2003 21:09:33 -0000 Message-ID: <20031028210929.26334.qmail@web21208.mail.yahoo.com> Received: from [65.83.223.20] by web21208.mail.yahoo.com via HTTP; Tue, 28 Oct 2003 13:09:29 PST Date: Tue, 28 Oct 2003 21:09:00 -0000 From: Dan Jakubiec To: ecos-discuss@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [ECOS] POSIX timer callback context X-SW-Source: 2003-10/txt/msg00479.txt.bz2 I'm using a POSIX timer in my application that I created with timer_create(). It is configured to generate a SIGUSR1 signal when the timer expires, and to call a signal handler installed by my app's thread. I also have several different tasks running that were all created with pthread_create(). When the timer expires, the signal handler gets executed, but it appears to be executing in a another thread's context (i.e. pthread_self() returns the handle for one of my other threads). Furthermore, the thread that installed the handler is waiting in a pselect() call that never gets interrupted with EINTR. This seems like a bug to me, but I wanted to pass this by the group before fixing it to make sure I wasn't missing anything. Seems like there is a bit of a grey area in the POSIX docs about whether signals get delivered to the "process" or one of its "threads". However, it seems that in eCos it would only make sense to deliver signals to the calling thread itself. Does anyone have any background info on the eCos implementation of POSIX timers, or an opinion on how POSIX timer callbacks should be processed? -- Dan Jakubiec Systech Corp __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss