RoutiSigHandler #1515
Answered
by
elfenpiff
hemalbavishi
asked this question in
Q&A
RoutiSigHandler
#1515
-
During my analysis, I found bit strange piece of code in roudi_app.cpp I have a question on this piece of code |
Beta Was this translation helpful? Give feedback.
Answered by
elfenpiff
Jul 18, 2022
Replies: 1 comment 1 reply
-
@hemalbavishi You are right, this semaphore is now superfluous that is why we removed it on master some time ago. The new way is to use the posix signalwatcher from iceoryx hoofs when one would like to wait until the (roudi) app received a #include "iceoryx_hoofs/posix_wrapper/signal_watcher.hpp"
//... some code
iox::posix::waitForTerminationRequest(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hemalbavishi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hemalbavishi You are right, this semaphore is now superfluous that is why we removed it on master some time ago. The new way is to use the posix signalwatcher from iceoryx hoofs when one would like to wait until the (roudi) app received a
SIGTERM
signal.See: