Exit Waitset without using Signal Handler #2406
Unanswered
saftabrashid
asked this question in
Q&A
Replies: 1 comment
-
@saftabrashid you need either a signal handler or another thread polling Why are you not able to use a signal handler? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am running a simple IPC scenario using Iceoryx. I have a publisher that is publishing messages and a subscriber that receives and prints messages. I am using
waitset
in my subscriber. I am receiving all the messages from the publisher, however I am not able to exit the subscriber. After the publisher has finished the predefined set of messages, I want the subscriber to exit when, e.g., I pressq
on the keyboard. I do not want to use a Signal Handler as explained in waitset example codes. Previously, I was using kbhit() to exit my subscriber but now with waitset that does not work. My Subscriber code with waitset is given belowSubscriber with Waitset
Any pointers on how this problem can be solved?
Beta Was this translation helpful? Give feedback.
All reactions