Skip to content

Commit

Permalink
Stop preload errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jul 25, 2023
1 parent 9ff17ee commit d1e64b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nao/nao.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ D_W=1408
SIMPLE=/opt/bin/simple
OPKG=/opt/bin/opkg
PROC_NAME=nao
_PRELOAD=$LD_PRELOAD
LD_PRELOAD=

# {{{ FIELD SEPARATOR STUFF
function use_newline_separator() {
Expand Down Expand Up @@ -40,7 +42,7 @@ function run_cmd() {
outfile="/home/root/.cache/nao/output"
errfile="/home/root/.cache/nao/errors"
mkdir -p /home/root/.cache/nao/ 2>/dev/null
LD_PRELOAD= PATH="/opt/bin:$PATH" ${cmd} > "${outfile}" 2> "${errfile}" &
PATH="/opt/bin:$PATH" ${cmd} > "${outfile}" 2> "${errfile}" &
pid="$!"
output=`cat "${outfile}" | tail -n50`
while ps | grep -v grep | grep " $pid "
Expand Down

0 comments on commit d1e64b7

Please sign in to comment.