trapsink in scotty-1.99.4

Hans Bayle (hansb@aie.nl)
Fri, 28 Apr 1995 12:10:36 -0700

Hi,

I found a bug in scotties trapsink feature. (version scotty-1.99.4)

The straps() call that is in snmp/net.c is returning the number of pids
that are created by Tcl_CreatePipeline.
In this case Tcl_CreatePipeline creates one process: /usr/local/bin/straps,
so straps() returns 1 if it succeeds.
This means that SNMP_TrapSocket() should be modified:

diff for net.c

255,256c276
<
< if (straps (interp) != TCL_OK) return TCL_ERROR;

---
> 	if (straps (interp) != 1) return TCL_ERROR; /* returns # of pids */

| Hans Bayle | | hansb@aie.nl | Shut your mouth or unveil this mystery to me :) | AI Engineering | | +31 20 6750415 |