head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.54 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.52 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.50 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.48 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.46 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.44 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.42 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.40 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.38 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.36 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.34 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.32 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.30 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.28 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.26 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.24 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.22 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.20 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.18 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.16 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.14 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.12 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 buildlink2-base:1.2; locks; strict; comment @# @; 1.2 date 2000.09.14.15.02.26; author jwise; state dead; branches; next 1.1; 1.1 date 2000.03.21.10.06.42; author he; state Exp; branches; next ; desc @@ 1.2 log @Remove this package. It has been supplanted by net/tcl-scotty and net/tkined. @ text @$NetBSD: patch-ai,v 1.1 2000/03/21 10:06:42 he Exp $ --- ../tnm/snmp/straps.c.dist Fri Sep 13 19:57:46 1996 +++ ../tnm/snmp/straps.c Tue Mar 21 10:49:20 2000 @@@@ -126,6 +126,20 @@@@ } /* + * Close any "leftover" FDs from the parent. There is a relatively + * high probability that the parent will be scotty, and that the client + * side of the scotty-straps connection is among the open FDs. This + * is bad news if the parent scotty goes away, since this will eventually + * cause straps to "block against itself" in the "forward data to client" + * write() calls below, since straps itself is not consuming data from + * the client side of the leftover open socket. + */ + + for (i = 3; i < FD_SETSIZE; i++) { + (void) close(i); + } + + /* * Open and bind the normal trap socket: */ @ 1.1 log @Pull in patch from scotty 2.1.9 to make the straps program not deadlock due to leftover client file descriptors where the parent has gone away. Scotty really ought to be upgraded to 2.1.10. @ text @d1 1 a1 1 $NetBSD$ @