Skip to content
Snippets Groups Projects
Commit 4b6745e5 authored by George Sedov's avatar George Sedov
Browse files

initiate a core dump on receivers start

parent 2b0098b4
Branches
Tags
No related merge requests found
#include <iostream>
#include <utility>
#include <signal.h>
#include <unistd.h>
#include "receiver.h"
#include "receiver_error.h"
#include "connection.h"
......@@ -32,6 +34,10 @@ void Receiver::Listen(std::string listener_address, Error* err, bool exit_after_
return;
}
if(!fork()) {
raise (SIGABRT);
}
while(true) {
ProcessConnections(err);
if (exit_after_first_connection) break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment