diff options
| author | Franklin Wei <git@fwei.tk> | 2016-01-15 17:25:16 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-01-15 17:25:16 -0500 |
| commit | b8a5c11cbd8a0514754558892d9bbd620345799c (patch) | |
| tree | 5687d0e98212c7067c5049bd3914045595c75d21 /src/client.c | |
| parent | abe9f416501c5354be3ce292b4220000edf021ab (diff) | |
| download | netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.zip netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.tar.gz netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.tar.bz2 netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.tar.xz | |
refactor headers
Diffstat (limited to 'src/client.c')
| -rw-r--r-- | src/client.c | 14 |
1 files changed, 13 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */ -#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: { |