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

Stop if pipe has no data #27 #33

Merged
merged 3 commits into from Jul 10, 2019
Merged

Conversation

kudzinp
Copy link
Contributor

@kudzinp kudzinp commented Jul 9, 2019

No description provided.

@kudzinp kudzinp added this to the Sprint-jul-08 milestone Jul 9, 2019
@kudzinp kudzinp requested review from zxcat and s-medvedev July 9, 2019 10:34
@kudzinp kudzinp self-assigned this Jul 9, 2019
notifier.cpp Outdated
std::string subject;
std::string data;
std::string subject = "";
std::string data = "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Default constructor of std::string already do it.

Copy link
Contributor

Choose a reason for hiding this comment

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

nothing to say

@kudzinp kudzinp requested a review from afalaleev July 9, 2019 23:24
notifier.cpp Outdated
if (done) {
if (msg->data.size()) {
std::cerr << "WARNING! Pipe hasn't empty." << std::endl;
done = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't work because you clear done flag. User send SIGTERM signal, done-flag was set in interrupt handler. In this line it was clear. How way user can stop the notifier if msg has data?

@kudzinp kudzinp requested a review from s-medvedev July 10, 2019 08:41
@afalaleev afalaleev merged commit f18c544 into develop Jul 10, 2019
@afalaleev afalaleev deleted the 27-stop-if-pipe-has-no-data branch July 10, 2019 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants