The #:extra-ports argument to exec-command and its users behaves quite
strangely in certain circumstances, for example when multiple ports are
supplied, and they are supplied in an order other than by ascending file
descriptor number. This can cause file descriptors to be clobbered.
service: make EXTRA-PORTS work as advertised.
service: use PRESERVE-PORTS for redirecting FDs 0-2.
modules/shepherd/service.scm | 119 ++++++++++++++++++++++-------------
1 file changed, 76 insertions(+), 43 deletions(-)