From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14863 invoked by alias); 4 Jul 2002 12:05:14 -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 14723 invoked from network); 4 Jul 2002 12:05:11 -0000 Received: from unknown (HELO hhlx01.visionsystems.de) (62.145.30.242) by sources.redhat.com with SMTP; 4 Jul 2002 12:05:11 -0000 Received: from kallisto.intra.visionsystems.de (kallisto.intra.visionsystems.de [192.168.1.3]) by hhlx01.visionsystems.de (8.11.1/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id g64C57d14137 for ; Thu, 4 Jul 2002 14:05:10 +0200 Message-Id: <200207041205.g64C57d14137@hhlx01.visionsystems.de> Received: from there (development1.intra.visionsystems.de [192.168.1.36]) by kallisto.intra.visionsystems.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id 3HCZDRDB; Thu, 4 Jul 2002 14:05:07 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Roland =?iso-8859-1?q?Ca=DFebohm?= To: ecos-discuss@sources.redhat.com Date: Thu, 04 Jul 2002 05:05:00 -0000 References: <200207040822.g648Lvd13551@hhlx01.visionsystems.de> <200207040933.g649XUd13697@hhlx01.visionsystems.de> In-Reply-To: <200207040933.g649XUd13697@hhlx01.visionsystems.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ECOS] Signal handling X-SW-Source: 2002-07/txt/msg00036.txt.bz2 On Thursday, 4. July 2002 11:33, Roland Caßebohm wrote: > On Thursday, 4. July 2002 10:21, Roland Caßebohm wrote: > > Hi, > > > > I send signals with pthread_kill() from the snmp agent, which is not a > > pthread, to other threads, which are pthreads. > > If I send a signal from the snmp agent to the main thread it receives it. > > But if I send a signal to another thread, which is created from main it > > doesn't take effect. > > But if I send the same signal from another pthread not from the snmp > > agent it works. > > > > Why does it not work from the snmp agent thread to another pthread than > > main? > > > > Thanks you, > > Roland > > I have changed the initialisation code of the snmp agent, so that it is a > pthread and now it works. I think I have been glad to early. The first pthread which is created by main() gets the signal. But another which is created by the snmp agent pthread does not recognize the signal. -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss