Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent new daemon create on same machine #660

Conversation

duvanan13
Copy link
Contributor

  • Only one daemon on the machine listening to fifo
  • fifo will not be unlinked by the new daemon init

@minminlittleshrimp
Copy link
Collaborator

Hello @duvanan13
Fail unitest for gateway due to the daemon is blocked for duplicating.
Suggestion: Run other in docker and use the multinode demo in Intern Section 4 to apply.
https://github.com/minminlittleshrimp/dlt_intern_demo/blob/main/Section_4_Demo_docker/DLT_multinode_with_Docker.md
Regards

Copy link
Collaborator

@minminlittleshrimp minminlittleshrimp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Run other in docker and use the multinode demo in Intern Section 4 to apply.

Copy link
Collaborator

@minminlittleshrimp minminlittleshrimp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly check my point

CMakeLists.txt Outdated
@@ -94,7 +94,7 @@ option(WITH_DLT_FILE_LOGGING_SYSLOG_FALLBACK "Set to ON to enable fallback to sy
option(WITH_DLT_NETWORK_TRACE "Set to ON to enable network trace (if message queue is supported)" ON)
option(WITH_DLT_LOG_LEVEL_APP_CONFIG "Set to ON to enable default log levels based on application ids" OFF)

set(DLT_IPC "FIFO"
set(DLT_IPC "UNIX_SOCKET"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default the ipc is fifo, so please turn this flag inside git ci/cd script

@@ -105,6 +104,10 @@ if(WITH_DLT_SHM_ENABLE)
list(APPEND TARGET_LIST gtest_dlt_shm)
endif()

if(WITH_DLT_SHM_ENABLE AND DLT_IPC STREQUAL "UNIX_SOCKET")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also turn shm on inside ci/cd script

@@ -92,8 +92,7 @@ endforeach()
###################
# DLT daemon tests
###################
set(TARGET_LIST gtest_dlt_daemon_gateway
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the purpose of removal here? what makes this test suite different with the other?

+ Only one daemon on the machine listening to fifo
+ fifo will not be unlinked by the new daemon init
@duvanan13 duvanan13 force-pushed the prevent_new_daemon_create_on_same_machine branch from e4d1f41 to ad43b63 Compare July 16, 2024 07:19
@duvanan13 duvanan13 closed this by deleting the head repository Jul 16, 2024
@minminlittleshrimp
Copy link
Collaborator

Close as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants