View | Details | Raw Unified | Return to bug 236564
Collapse All | Expand All

(-)usr.sbin/periodic/periodic.sh (-1 / +6 lines)
Lines 78-83 Link Here
78
78
79
if [ -z "$PERIODIC_ANTICONGESTION_FILE" ] ; then
79
if [ -z "$PERIODIC_ANTICONGESTION_FILE" ] ; then
80
	export PERIODIC_ANTICONGESTION_FILE=`mktemp ${TMPDIR:-/tmp}/periodic.anticongestion.XXXXXXXXXX`
80
	export PERIODIC_ANTICONGESTION_FILE=`mktemp ${TMPDIR:-/tmp}/periodic.anticongestion.XXXXXXXXXX`
81
	remove_periodic_anticongestion_file=yes
82
else
83
	remove_periodic_anticongestion_file=no
81
fi
84
fi
82
if tty > /dev/null 2>&1; then
85
if tty > /dev/null 2>&1; then
83
	export PERIODIC_IS_INTERACTIVE=1
86
	export PERIODIC_IS_INTERACTIVE=1
Lines 147-150 Link Here
147
} | output_pipe $arg "$context"
150
} | output_pipe $arg "$context"
148
151
149
rm -f $tmp_output
152
rm -f $tmp_output
150
rm -f $PERIODIC_ANTICONGESTION_FILE
153
if [ $remove_periodic_anticongestion_file = "yes" ] ; then
154
    rm -f $PERIODIC_ANTICONGESTION_FILE
155
fi

Return to bug 236564