>>>>> "RS" == Robert Story <[EMAIL PROTECTED]> writes:
RS> No, without it a poorly written script hangs. The same could be RS> said for a non-persist pass script, or even a C module. We can't RS> cover all the bases. No, without it the *agent* hangs. It's doing a waitpid on a pid that never exits: + kill(persist_pipes[iindex].pid, SIGTERM); #if HAVE_SYS_WAIT_H waitpid(persist_pipes[iindex].pid, 0, 0); I agree there is probably a better fix. Even (pseudo): close(fd); while(usleep(somethingsmall) && waitpid(fd,0,WNOHANG) && count < 5) { count++; } kill waitpid(fd,0,0) is probably better. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders