The "-a" option for inetd specifies a specific IP address for the

server to bind to. This works until you send it a SIGHUP with a
new service defined ... the new service is bound to INADDR_ANY.

This patch fixes this bug (in both RELENG_2_2 and -current).

This is a 2.2 candidate..(i.e. pure bug fix)

Submitted by:	Archie Cobbs (archie@whistle.com)
This commit is contained in:
Julian Elischer 1997-02-05 19:50:04 +00:00
parent e56a1af623
commit fb42516541
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22306

View File

@ -712,6 +712,7 @@ config(signo)
}
if (sp->s_port != sep->se_ctrladdr.sin_port) {
sep->se_ctrladdr.sin_family = AF_INET;
sep->se_ctrladdr.sin_addr = bind_address;
sep->se_ctrladdr.sin_port = sp->s_port;
if (sep->se_fd >= 0)
close_sep(sep);