Skip to content

Commit

Permalink
systemcmds/xx: Turn some systemcmds into a non-daemon task
Browse files Browse the repository at this point in the history
These are simple and stateless applications -> NO_DAEMON saves 1
process and socket from being created for nothing.
  • Loading branch information
pussuw committed Sep 18, 2023
1 parent 39cc4dc commit f282562
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/systemcmds/netconfig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
px4_add_module(
MODULE modules__netconfig
MAIN netconfig
NO_DAEMON
SRCS
netconfig.cpp
)
1 change: 1 addition & 0 deletions src/systemcmds/system_time/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
px4_add_module(
MODULE systemcmds__system_time
MAIN system_time
NO_DAEMON
SRCS
system_time.cpp
DEPENDS
Expand Down
1 change: 1 addition & 0 deletions src/systemcmds/topic_listener/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ px4_add_module(
MODULE systemcmds__topic_listener
MAIN listener
STACK_MAIN 4096
NO_DAEMON
SRCS
listener_main.cpp
)
Expand Down
1 change: 1 addition & 0 deletions src/systemcmds/tune_control/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/systemcmds/uorb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ px4_add_module(
MODULE systemcmds__uorb
MAIN uorb
COMPILE_FLAGS
NO_DAEMON
SRCS
uorb.cpp
uORBDeviceMaster.cpp
Expand Down
1 change: 1 addition & 0 deletions src/systemcmds/work_queue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
px4_add_module(
MODULE systemcmds__work_queue
MAIN work_queue
NO_DAEMON
SRCS
work_queue_main.cpp
)

0 comments on commit f282562

Please sign in to comment.