commit 034e4d24754682fff71fcfb6ac425b1b4e147532
parent a754eb7a741b870bd5442297bd570d1ab3ecbd0e
Author: Sebastian Moeller <moeller0@gmx.de>
Date: Mon, 29 Jun 2015 10:04:52 +0200
[SQM] Fix sqm_logger to accept empty strings as input
sqm_logger tried tro wait indefinitely if passed an empty string.
This in turn makes sqm-scripts hang. Quoting the input argument in sqm_logger
seems to fix the problem.
Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sqm-scripts/files/usr/lib/sqm/functions.sh b/net/sqm-scripts/files/usr/lib/sqm/functions.sh
@@ -6,7 +6,7 @@
#improve the logread output
sqm_logger() {
- logger -t SQM -s ${1}
+ logger -t SQM -s "${1}"
}
insmod() {