Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/admin/src/scripts In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14358/ldapserver/ldap/admin/src/scripts
Modified Files: Util.pm.in Log Message: Reviewed by: nkinder (Thanks!) Branch: HEAD Fix Description: Set SO_REUSEADDR to make sure the port is really available. Platforms tested: RHEL5, Fedora 8, Fedora 9 Flag Day: no Doc impact: no
Index: Util.pm.in =================================================================== RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/Util.pm.in,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- Util.pm.in 17 Dec 2007 23:49:50 -0000 1.16 +++ Util.pm.in 14 Jul 2008 23:25:41 -0000 1.17 @@ -78,6 +78,7 @@ my $proto = getprotobyname('tcp'); my $rc = socket(SOCK, PF_INET, SOCK_STREAM, $proto); if ($rc == 1) { + setsockopt(SOCK, SOL_SOCKET, SO_REUSEADDR, 1); $rc = bind(SOCK, sockaddr_in($port, INADDR_ANY)); } close(SOCK);
389-commits@lists.fedoraproject.org