Skip to content
Snippets Groups Projects
Commit 3fc9ca28 authored by dnsadmin's avatar dnsadmin
Browse files

Leállítás kapcsoló alapján (#8)

parent d0caf918
No related branches found
No related tags found
No related merge requests found
......@@ -167,11 +167,15 @@ int main(int argc, char *argv[])
while(true)
{
server.serve_one_request();
log_on_demand(LOG_DEBUG, comm_link.recv_data().c_str());
if(comm_link.recv_data() == "kill")
{
comm_link.send_data("go to hell!");
log_on_demand(LOG_DEBUG, "Raising SIGTERM");
raise(SIGTERM);
}
else
comm_link.send_data("nothing has happened");
}
// ---------------- SERVE END -------------------------
// ------------------- SHUTDOWN -------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment