From: Vincent Bernat Date: Tue, 22 Jan 2013 08:51:06 +0000 (+0100) Subject: lldpd: discard output of lldpcli X-Git-Tag: 0.7.2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb78d6e3d9be2699e4ae30fd7ddc4a219b8c620e;p=thirdparty%2Flldpd.git lldpd: discard output of lldpcli We keep stderr since we may have logs here. --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 30f80c54..747ef0cf 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -1022,6 +1022,7 @@ lldpd_configure(int debug, const char *path) sdebug[0] = '-'; sdebug[1] = 's'; dup2(devnull, STDIN_FILENO); + dup2(devnull, STDOUT_FILENO); if (devnull > 2) close(devnull); log_debug("main", "invoke %s %s", path, sdebug);