procd: fix respawn related warning
authorJohn Crispin <john@openwrt.org>
Thu, 10 Mar 2016 20:15:59 +0000 (20:15 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 10 Mar 2016 20:15:59 +0000 (20:15 +0000)
WARNING: Variable 'respawn' does not exist or is not an array/object

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 48996

package/system/procd/files/procd.sh

index 65195610557eb48f4e778a59510b15fc072f7c6f..1c2edc67994d37513d1a244bba1bc882217758c0 100644 (file)
@@ -318,6 +318,7 @@ _procd_append_param() {
 
 _procd_close_instance() {
        local respawn_vals
+       _json_no_warning=1
        if json_select respawn ; then
                json_get_values respawn_vals
                if [ -z "$respawn_vals" ]; then