json input support, some shutdown fixes. json needs cleanup.

This commit is contained in:
Ian Gulliver
2016-02-23 13:49:23 -08:00
parent 07d273236d
commit d2e521e90c
14 changed files with 212 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "incoming.h"
#include "outgoing.h"
@@ -49,7 +50,7 @@ bool opts_add_dump(char *arg) {
if (!serializer) {
return false;
}
send_add(1, serializer);
send_add(dup(1), serializer);
return true;
}