This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Signal handling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]