]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Send stdout and stderr of OpenVPN started by interactive service to NUL
authorSelva Nair <selva.nair@gmail.com>
Sun, 14 Feb 2016 17:28:01 +0000 (12:28 -0500)
committerGert Doering <gert@greenie.muc.de>
Thu, 25 Feb 2016 13:29:23 +0000 (14:29 +0100)
commit852f1e49c7e692c6392fe07160cfbc8d6b17f0d0
treeeeaad620827392e9d8775e2d17db5e7894a43bc2
parent236769150f64087c590c718c76916ee3c8c9d3b5
Send stdout and stderr of OpenVPN started by interactive service to NUL

Currently the service directs stdout/stderr of openvpn process to a pipe.
The
service never reads from it unless the process exits with an error. This
causes
the process to hang when large amount of log is written to stdout.

- Direct stdout/stderr to NUL
- Write the exit code (if nonzero) to the event log

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1455470881-32341-1-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11161
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpnserv/interactive.c