select interrupt cleanup

This commit is contained in:
Benjamin Sergeant
2019-03-14 18:37:38 -07:00
parent b462b5a5c8
commit b91dc77d6f
22 changed files with 411 additions and 150 deletions

View File

@ -92,12 +92,9 @@ int main(int argc, char** argv)
CLI11_PARSE(app, argc, argv);
ix::Socket::init();
// pid file handling
if (app.got_subcommand("transfer"))
{
// pid file handling
if (!pidfile.empty())
{
unlink(pidfile.c_str());

View File

@ -153,7 +153,6 @@ namespace ix
int ws_connect_main(const std::string& url)
{
Socket::init();
interactiveMain(url);
return 0;
}

View File

@ -254,7 +254,6 @@ namespace ix
int ws_receive_main(const std::string& url,
bool enablePerMessageDeflate)
{
Socket::init();
wsReceive(url, enablePerMessageDeflate);
return 0;
}

View File

@ -298,7 +298,6 @@ namespace ix
bool throttle = false;
bool enablePerMessageDeflate = false;
Socket::init();
wsSend(url, path, enablePerMessageDeflate, throttle);
return 0;
}