]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
inetd: track all child pids, regardless of maxchild spec
authorkevans <kevans@FreeBSD.org>
Wed, 1 Jan 2020 04:22:04 +0000 (04:22 +0000)
committerkevans <kevans@FreeBSD.org>
Wed, 1 Jan 2020 04:22:04 +0000 (04:22 +0000)
commit9b6286055a6359722ea6374567b0d4057c38d755
treeb7d3573de80c2e319cbbe2a68a43d18e854a11a3
parent46ffe94590eefad89d668b8aa4496de8127a728f
inetd: track all child pids, regardless of maxchild spec

Currently, child pids are only tracked if maxchildren is specified. As a
consequence, without a maxchild limit we do not get a notice in syslog on
children aborting abnormally. This turns out to be a great debugging aide at
times.

Children are now tracked in a LIST; the management interface is decidedly
less painful when there's no upper bound on the number of entries we may
have at the cost of one small allocation per connection.

PR: 70335
usr.sbin/inetd/inetd.c
usr.sbin/inetd/inetd.h