This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Signal handling
- From: Roland Caßebohm <roland dot cassebohm at visionsystems dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 4 Jul 2002 11:33:30 +0200
- Subject: Re: [ECOS] Signal handling
- References: <200207040822.g648Lvd13551@hhlx01.visionsystems.de>
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.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss