Stuck CLOSED sockets / sshd / zombies...

Konstantin Belousov kostikbel at gmail.com
Fri Apr 11 18:39:55 UTC 2014


On Fri, Apr 11, 2014 at 01:23:00PM -0400, Daniel Eischen wrote:
> On Fri, 11 Apr 2014, Konstantin Belousov wrote:
> > The correct solution is to merge libthr into libc. Some neccessary
> > preparations were already done, but the main work did not started yet.
> > This is huge efforts, and it probably should be coordinated with some
> > other ABI changes planed for libthr to support process-shared locks.
> 
> Eek, no, I don't think that is necessary.  When we go to using real
> structs instead of pointers for synchronization types (mutex, CV)
> in libthr, then I don't think there will be a problem.

Could you, please, clarify what do you consider not neccessary ?
The merge, the (unrelated) ABI change, or coordination ?

BTW, below is the updated patch with the workaround for sshd issue.

diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index 4f730a9..b3231a4 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -57,6 +57,12 @@ CFLAGS+= -DNONE_CIPHER_ENABLED
 DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
 LDADD+= -lcrypt -lcrypto -lz
 
+# put the threading library last
+.if ${MK_KERBEROS_SUPPORT} != "no"
+DPADD+= ${LIBPTHREAD}
+LDADD+= -lpthread
+.endif
+
 .if defined(LOCALBASE)
 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
 .endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20140411/1679f7b9/attachment.sig>


More information about the freebsd-hackers mailing list