Print HTTP port number in the logs during startup
authorAndrii Senkovych <andrii@senkovych.com>
Tue, 19 Nov 2019 08:28:46 +0000 (08:28 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 19 Nov 2019 08:28:46 +0000 (08:28 +0000)
commit4a798aa3e4e2df8cad0e1d7533b913960048bf71
tree1010031e18a8e7900909c3c71e710752c07d3115
parent322e0ea0114620512707cac8a859482b1caedfb4
Print HTTP port number in the logs during startup

Last-Update: 2016-11-17

Current test suite allows dynamic HTTP port allocation for test purpose.
Once webdis is started it is possible to discover webdis' HTTP port using
netstat. However resent builds have shown that netstat has different options
for hurd and kfreebsd and thus tests are failed and the overall package build
is marked as failed as well. In order to overcome this I have tried to use
sockstat instead of netstat but bug #679876 renders sockstat unusable.

This patch removes the need to use netstat or sockstat to discover the port
number webdis is listening to and instead allows one to simply grep the
necessary info out of webdis logs.
===================================================================

Gbp-Pq: Name print-listen-port-number.patch
server.c