Fork writes to background

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
latency
Tyler Nijmeh 4 years ago
parent f4099636fa
commit 98f49e1460

@ -20,7 +20,7 @@ dbg() {
}
# Safely write value to file
write() {
_write() {
# Bail out if file does not exist
if [[ ! -f "$1" ]]
then
@ -51,6 +51,11 @@ write() {
dbg "Wrote $1: $curval --> $2"
}
# Background fork write function
write() {
_write $@ &
}
usage() {
echo -n "Usage: `basename $0` [OPTIONS]
Options:

Loading…
Cancel
Save