From: Kris Van Hees Date: Thu, 8 Jul 2004 06:23:53 +0000 (+0000) Subject: solaris10-20040624 X-Git-Tag: openafs-devel-1_3_66~66 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=fa82c5e6a9a6eadd97588b6b2e028fe0595bb375;hp=775933e89544da31c0cf22cd0937614f5616c50e solaris10-20040624 FIXES 5396 as substantially done by Jeff Woodward , work diffed out and slightly rewritten ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== FIXES 5396 this should be the correct way to give up the socket on all solaris versions --- diff --git a/src/lwp/Makefile.in b/src/lwp/Makefile.in index 903903f..07c3a8a 100644 --- a/src/lwp/Makefile.in +++ b/src/lwp/Makefile.in @@ -35,7 +35,7 @@ process.o : process.s process.i386.s process.c @case "$(SYS_NAME)" in \ pmax_he1) \ $(CCOBJ) ${LWP_DBG} ${LWP_OPTMZ} -c -I${TOP_INCDIR} process.s;; \ - sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_52 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5?) \ + sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_52 | sun4_54 | sun4c_54 | sun4m_54 | sun4x_5* ) \ /usr/ccs/lib/cpp -P -I${TOP_INCDIR} ${srcdir}/process.s process.ss; \ ${AS} process.ss -o process.o; \ $(RM) process.ss ;; \ diff --git a/src/rx/SOLARIS/rx_knet.c b/src/rx/SOLARIS/rx_knet.c index 43314c1..d8c192c 100644 --- a/src/rx/SOLARIS/rx_knet.c +++ b/src/rx/SOLARIS/rx_knet.c @@ -341,14 +341,11 @@ osi_FreeSocket(register struct osi_socket *asocket) afs_osi_Sleep(&rxk_ListenerPid); } -#ifdef AFS_SUN510_ENV + /* Was sockfs_sounbind(so, 0); sockfs_sockfree(so); That's wrong */ vp = SOTOV(so); VOP_CLOSE(vp, FREAD|FWRITE, 1, (offset_t)0, CRED()); VN_RELE(vp); -#else - sockfs_sounbind(so, 0); - sockfs_sockfree(so); -#endif + return 0; }