diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 11:26:34 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 11:26:34 +0000 |
commit | dadc56d754f2e86dec96bcf3bed54090538ce336 (patch) | |
tree | 77f6aab210106a251b3516bca4ba8ddc92973c86 /server.c | |
parent | a68b1e58db8b970f82cd17a74a18d30a0c77424e (diff) |
Key binding, unbinding.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.18 2007-10-03 10:20:33 nicm Exp $ */ +/* $Id: server.c,v 1.19 2007-10-03 11:26:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -127,6 +127,8 @@ server_main(char *srv_path, int srv_fd) ARRAY_INIT(&clients); ARRAY_INIT(&sessions); + cmd_init(); + pfds = NULL; while (!sigterm) { /* Initialise pollfd array. */ @@ -169,6 +171,8 @@ server_main(char *srv_path, int srv_fd) server_handle_clients(&pfd); } + cmd_free(); + close(srv_fd); unlink(srv_path); |