qrexec: do not leak FDs to logger process

This would prevent qrexec from detecting EOF.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-17 14:46:53 +01:00
parent a86d980ff4
commit 0f75603d6d

View File

@ -1,7 +1,7 @@
#!/bin/sh
mkfifo /tmp/qrexec-rpc-stderr.$$
logger -t "$1-$2" -f /tmp/qrexec-rpc-stderr.$$ &
logger -t "$1-$2" -f /tmp/qrexec-rpc-stderr.$$ >/dev/null 2>&1 </dev/null &
exec 2>/tmp/qrexec-rpc-stderr.$$
rm -f /tmp/qrexec-rpc-stderr.$$