[ECOS] sending traps from a thread other than the snmpd thread..

Andrew Lunn andrew@lunn.ch
Mon May 24 21:12:00 GMT 2004


> In examining the source I found that both the trap and 
> the snmp-get/set operations end up using the send (socket)
> function call. This function is thread safe, isnt it?
> Looking at the code, there is a LOCK_SOCKET macro call
> that seems to lock the file descriptor for the socket.

Socket calls are thread safe.

        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



More information about the Ecos-discuss mailing list