This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: sending traps from a thread other than the snmpd thread..
- From: Andrew Lunn <andrew at lunn dot ch>
- To: agyhoo <agyhoo at yahoo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 24 May 2004 14:35:41 +0200
- Subject: Re: [ECOS] sending traps from a thread other than the snmpd thread..
- References: <20040519213548.56963.qmail@web41309.mail.yahoo.com>
On Wed, May 19, 2004 at 02:35:48PM -0700, agyhoo wrote:
> Is it possible to send a trap from a thread other
> than the snmpd thread safely? In other words are
> the send_easy_trap, send_trap_vars etc. API thread
> safe?
>
> If anyone has done this, I would appreciate any info.
> Thanks.
I've done this and it worked OK. I don't remember actually checking if
it was thread safe though. You do need a big stack though otherwise
you overflow it.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss