ce2f68
--- netkit-telnet-0.17/telnetd/telnetd.c.cleanup_race	2005-01-11 18:39:49.578123000 -0500
ce2f68
+++ netkit-telnet-0.17/telnetd/telnetd.c	2005-01-11 18:42:45.909616000 -0500
ce2f68
@@ -1081,6 +1081,8 @@
ce2f68
 	if (FD_ISSET(p, &obits) && (pfrontp - pbackp) > 0)
ce2f68
 	    ptyflush();
ce2f68
     }
ce2f68
+    /* to avoid a race for wtmp lock */
ce2f68
+    signal(SIGCHLD, SIG_IGN);
ce2f68
     cleanup(0);
ce2f68
 }  /* end of telnet */
ce2f68