From 3f83210644b82fbe66a619f8ac2814fe96df623e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 27 Jul 2021 11:27:59 +0300 Subject: [PATCH] Do not exit if MCD interface is unavailable --- doc/news.ru.texi | 4 ++++ doc/news.texi | 4 ++++ src/cmd/nncp-caller/main.go | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/news.ru.texi b/doc/news.ru.texi index 3f7d2df..29dd5a8 100644 --- a/doc/news.ru.texi +++ b/doc/news.ru.texi @@ -15,6 +15,10 @@ @command{nncp-call} может быть UCSPI-TCP клиентом, используя @option{-ucspi} опцию. +@item +Не выходить если не получается слушать на каком-либо MCD сетевом +интерфейсе -- только предупреждать об ошибке. + @end itemize @node Релиз 7.4.0 diff --git a/doc/news.texi b/doc/news.texi index 6707c6f..0f23057 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -15,6 +15,10 @@ utility). @option{-ucspi} option should be used instead of @option{-inetd}. @item @command{nncp-call} can be UCSPI-TCP client, using @option{-ucspi} option. +@item +Do not exit if some of MCD network interfaces can not be listened -- +only warn about that. + @end itemize @node Release 7_4_0 diff --git a/src/cmd/nncp-caller/main.go b/src/cmd/nncp-caller/main.go index d1a5b34..614a051 100644 --- a/src/cmd/nncp-caller/main.go +++ b/src/cmd/nncp-caller/main.go @@ -124,7 +124,7 @@ func main() { for _, ifiName := range ctx.MCDRxIfis { if err = ctx.MCDRx(ifiName); err != nil { - log.Fatalln("Can not run MCD reception:", err) + log.Printf("Can not run MCD reception on %s: %s", ifiName, err) } } -- 2.44.0