/*
* rpcd - UBUS RPC server
*
- * Copyright (C) 2013 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright (C) 2013-2014 Jo-Philipp Wich <jow@openwrt.org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
#include <sys/stat.h>
#include <sys/wait.h>
-#include "exec.h"
+#include <rpcd/exec.h>
static int
rpc_errno_status(void)
}
}
-static const char *
+const char *
rpc_exec_lookup(const char *cmd)
{
struct stat s;
ustream_poll(&c->opipe.stream);
ustream_poll(&c->epipe.stream);
+
+ close(c->opipe.fd.fd);
+ close(c->epipe.fd.fd);
+
+ ustream_poll(&c->opipe.stream);
+ ustream_poll(&c->epipe.stream);
}
static void