From b8a5c11cbd8a0514754558892d9bbd620345799c Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 15 Jan 2016 17:25:16 -0500 Subject: refactor headers --- src/client.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/client.c') diff --git a/src/client.c b/src/client.c index 7b4a9cc..37f9c23 100644 --- a/src/client.c +++ b/src/client.c @@ -16,7 +16,15 @@ * along with this program. If not, see . */ -#include "netcosm.h" +#include "globals.h" + +#include "auth.h" +#include "client.h" +#include "hash.h" +#include "server.h" +#include "room.h" +#include "telnet.h" +#include "util.h" static bool admin = false; @@ -178,6 +186,9 @@ void sig_rt_0_handler(int s, siginfo_t *info, void *v) (void) s; (void) v; + if(!are_child) + return; + /* we only listen to requests from our parent */ if(info->si_pid != getppid()) { @@ -212,6 +223,7 @@ void sig_rt_0_handler(int s, siginfo_t *info, void *v) returned_reqdata.boolean = status; if(!status) out("Cannot go that way.\n"); + break; } case REQ_GETUSERDATA: { -- cgit v1.1