Split source into multiple files
SIGUSR1 now causes reload of blacklist sigstoped now resumes all processes it stoped upon reciving SIGINT or SIGTERM sigstoped avoids stopping processes that have no top level window left TODO: is this enough?
This commit is contained in:
15
split.h
Normal file
15
split.h
Normal file
@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
inline std::vector<std::string> split(const std::string& in, char delim = '\n' )
|
||||
{
|
||||
std::stringstream ss(in);
|
||||
std::vector<std::string> tokens;
|
||||
std::string temp_str;
|
||||
while(std::getline(ss, temp_str, delim))
|
||||
{
|
||||
tokens.push_back(temp_str);
|
||||
}
|
||||
return tokens;
|
||||
}
|
Reference in New Issue
Block a user