From b8683dd351d0c87f42b73c1a2e39bb2d47ad9395 Mon Sep 17 00:00:00 2001 From: francescomani Date: Thu, 11 Sep 2025 18:47:25 +0200 Subject: [PATCH] check command line for unknown options at gNB --- executables/nr-softmodem.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/executables/nr-softmodem.c b/executables/nr-softmodem.c index d8df770cb8..0bd583662b 100644 --- a/executables/nr-softmodem.c +++ b/executables/nr-softmodem.c @@ -713,6 +713,11 @@ int main( int argc, char **argv ) { // wait for end of program printf("TYPE TO TERMINATE\n"); + // Sleep a while before checking all parameters have been used + // Some are used directly in external threads, asynchronously + sleep(2); + config_check_unknown_cmdlineopt(uniqCfg, CONFIG_CHECKALLSECTIONS); + itti_wait_tasks_end(NULL); printf("Returned from ITTI signal handler\n");