Skip to content

Commit

Permalink
Ignore SIGPIPE
Browse files Browse the repository at this point in the history
  • Loading branch information
taganaka committed Dec 28, 2016
1 parent fc92460 commit 4ecabc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.7)
project(SpeedTest)

set (SpeedTest_VERSION_MAJOR 1)
set (SpeedTest_VERSION_MINOR 10)
set (SpeedTest_VERSION_MINOR 11)
set (SpeedTest_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
set (SpeedTest_SYSTEM ${CMAKE_SYSTEM})

Expand Down
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "SpeedTest.h"
#include "TestConfigTemplate.h"
#include "CmdOptions.h"

#include <csignal>

void banner(){
std::cout << "SpeedTest++ version " << SpeedTest_VERSION_MAJOR << "." << SpeedTest_VERSION_MINOR << std::endl;
Expand Down Expand Up @@ -49,6 +49,8 @@ int main(const int argc, const char **argv) {
return EXIT_SUCCESS;
}

signal(SIGPIPE, SIG_IGN);


auto sp = SpeedTest(SPEED_TEST_MIN_SERVER_VERSION);
IPInfo info;
Expand Down

0 comments on commit 4ecabc8

Please sign in to comment.