From 628eda74684e7d89af1f4b159c2027bff4fabe3d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 5 May 2025 18:01:29 +0200 Subject: [PATCH] ppp-on-up: fail if global functions do not become ready Co-authored-by: Ilya Kulakov --- ppp-on-up.rsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ppp-on-up.rsc b/ppp-on-up.rsc index e09bd9d5..4b51156b 100644 --- a/ppp-on-up.rsc +++ b/ppp-on-up.rsc @@ -9,7 +9,8 @@ # https://rsc.eworm.de/doc/ppp-on-up.md :global GlobalFunctionsReady; -:while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:onerror e { :retry { :if ($GlobalFunctionsReady != true) \ + do={ :error "Global functions not ready."; }; } delay=500ms max=20; } do={ :log error $e; }; :local ExitOK false; :do {