diff --git a/aws/kinesis/main.cc b/aws/kinesis/main.cc index 88bd2876..88d436ac 100644 --- a/aws/kinesis/main.cc +++ b/aws/kinesis/main.cc @@ -332,6 +332,14 @@ void set_core_limit() { #endif } +void create_process_group() { +#if !BOOST_OS_WINDOWS + if (setpgid(0, 0) != 0) { + LOG(error) << "Could not create a new process group"; + } +#endif +} + std::string get_ca_path() { std::string p = "."; if (!options.ca_path.empty()) { @@ -372,6 +380,8 @@ int main(int argc, char* const* argv) { set_core_limit(); } + create_process_group() + aws::utils::set_log_level(config->log_level()); auto executor = get_executor();