Skip to content

Commit

Permalink
campaignd: Don't allude to signals that don't exist, on Windows
Browse files Browse the repository at this point in the history
Fixes Windows builds.
  • Loading branch information
irydacea committed Oct 14, 2016
1 parent 2d84467 commit 9542417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/campaign_server/campaign_server.cpp
Expand Up @@ -312,8 +312,6 @@ void server::handle_read_from_fifo(const boost::system::error_code& error, std::
read_from_fifo();
}

#endif

void server::handle_sighup(const boost::system::error_code&, int)
{
LOG_CS << "SIGHUP caught, reloading config.\n";
Expand All @@ -325,6 +323,8 @@ void server::handle_sighup(const boost::system::error_code&, int)
sighup_.async_wait(std::bind(&server::handle_sighup, this, _1, _2));
}

#endif

void server::flush_cfg()
{
flush_timer_.expires_from_now(std::chrono::minutes(10));
Expand Down
2 changes: 2 additions & 0 deletions src/campaign_server/campaign_server.hpp
Expand Up @@ -95,7 +95,9 @@ class server : private boost::noncopyable, public server_base

void handle_read_from_fifo(const boost::system::error_code& error, std::size_t bytes_transferred);

#ifndef _WIN32
void handle_sighup(const boost::system::error_code& error, int signal_number);
#endif

boost::asio::basic_waitable_timer<std::chrono::steady_clock> flush_timer_;
/**
Expand Down

0 comments on commit 9542417

Please sign in to comment.