From f2825629c0904c8205eadb9c32d74da7c13a1d6c Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Thu, 14 Sep 2023 15:55:46 +0300 Subject: [PATCH] systemcmds/xx: Turn some systemcmds into a non-daemon task These are simple and stateless applications -> NO_DAEMON saves 1 process and socket from being created for nothing. --- src/systemcmds/netconfig/CMakeLists.txt | 1 + src/systemcmds/system_time/CMakeLists.txt | 1 + src/systemcmds/topic_listener/CMakeLists.txt | 1 + src/systemcmds/tune_control/CMakeLists.txt | 1 + src/systemcmds/uorb/CMakeLists.txt | 1 + src/systemcmds/work_queue/CMakeLists.txt | 1 + 6 files changed, 6 insertions(+) diff --git a/src/systemcmds/netconfig/CMakeLists.txt b/src/systemcmds/netconfig/CMakeLists.txt index 401f78659d0c..e4cec6cd4782 100644 --- a/src/systemcmds/netconfig/CMakeLists.txt +++ b/src/systemcmds/netconfig/CMakeLists.txt @@ -33,6 +33,7 @@ px4_add_module( MODULE modules__netconfig MAIN netconfig + NO_DAEMON SRCS netconfig.cpp ) diff --git a/src/systemcmds/system_time/CMakeLists.txt b/src/systemcmds/system_time/CMakeLists.txt index edb2865f4ea4..b23698f3dd75 100644 --- a/src/systemcmds/system_time/CMakeLists.txt +++ b/src/systemcmds/system_time/CMakeLists.txt @@ -33,6 +33,7 @@ px4_add_module( MODULE systemcmds__system_time MAIN system_time + NO_DAEMON SRCS system_time.cpp DEPENDS diff --git a/src/systemcmds/topic_listener/CMakeLists.txt b/src/systemcmds/topic_listener/CMakeLists.txt index e5f127fd1ff9..349a727f4024 100644 --- a/src/systemcmds/topic_listener/CMakeLists.txt +++ b/src/systemcmds/topic_listener/CMakeLists.txt @@ -35,6 +35,7 @@ px4_add_module( MODULE systemcmds__topic_listener MAIN listener STACK_MAIN 4096 + NO_DAEMON SRCS listener_main.cpp ) diff --git a/src/systemcmds/tune_control/CMakeLists.txt b/src/systemcmds/tune_control/CMakeLists.txt index d00586054fbf..1ad44b6085ba 100644 --- a/src/systemcmds/tune_control/CMakeLists.txt +++ b/src/systemcmds/tune_control/CMakeLists.txt @@ -36,6 +36,7 @@ px4_add_module( PRIORITY "SCHED_PRIORITY_MAX - 16" # max priority below high priority WQ threads COMPILE_FLAGS + NO_DAEMON SRCS tune_control.cpp DEPENDS diff --git a/src/systemcmds/uorb/CMakeLists.txt b/src/systemcmds/uorb/CMakeLists.txt index 238c0059a956..ccee7e00647c 100644 --- a/src/systemcmds/uorb/CMakeLists.txt +++ b/src/systemcmds/uorb/CMakeLists.txt @@ -34,6 +34,7 @@ px4_add_module( MODULE systemcmds__uorb MAIN uorb COMPILE_FLAGS + NO_DAEMON SRCS uorb.cpp uORBDeviceMaster.cpp diff --git a/src/systemcmds/work_queue/CMakeLists.txt b/src/systemcmds/work_queue/CMakeLists.txt index 0ef8d88c6078..f4074853d0ef 100644 --- a/src/systemcmds/work_queue/CMakeLists.txt +++ b/src/systemcmds/work_queue/CMakeLists.txt @@ -33,6 +33,7 @@ px4_add_module( MODULE systemcmds__work_queue MAIN work_queue + NO_DAEMON SRCS work_queue_main.cpp )