*_check_start: Use ARGV0, although it doesn't have effect on function

This commit is contained in:
Sebastian Gniazdowski 2018-05-16 07:03:02 +02:00
parent 871773b531
commit 8f529b5cec

View file

@ -23,8 +23,9 @@ fi
(( ZFLAI_FD != 0 )) && return 0
# Not running, or closed to prevent race condition - start
# a new agent
builtin exec {ZFLAI_FD}> >(zflai_memory_keeper) || return 1
# a new agent. The ARGV0 assignment will not work untill
# zflai_memory_keeper is a command not a function.
builtin exec {ZFLAI_FD}> >(ARGV0=zflai-memory-keeper zflai_memory_keeper) || return 1
return 0