diff --git a/tool/run/load/ipxe b/tool/run/load/ipxe index 4cf895320e..4c88390f10 100644 --- a/tool/run/load/ipxe +++ b/tool/run/load/ipxe @@ -106,7 +106,8 @@ rename exit load_ipxe_real_exit proc exit {{status 0}} { if {[load_ipxe_lighttpd]} { global lighttpd_spawn_id - kill_spawned $lighttpd_spawn_id + # variable may not exist if the script fails early + if {[info exists lighttpd_spawn_id]} { kill_spawned $lighttpd_spawn_id } } load_ipxe_real_exit $status